pinafore/src/routes/_static/animations.js

38 lines
690 B
JavaScript
Raw Normal View History

const growBigThenSmall = {
properties: [
{ transform: 'scale(1)' },
{ transform: 'scale(2)' },
{ transform: 'scale(1)' }
],
options: {
duration: 333,
easing: 'ease-in-out'
}
}
const fadeColorToPressedState = {
properties: [
{ fill: 'var(--action-button-fill-color)' },
{ fill: 'var(--action-button-fill-color-pressed)' }
],
options: {
duration: 333,
easing: 'linear'
2018-03-21 09:38:20 -07:00
}
}
export const FAVORITE_ANIMATION = [
growBigThenSmall,
fadeColorToPressedState
2018-03-21 09:38:20 -07:00
]
export const REBLOG_ANIMATION = FAVORITE_ANIMATION
2018-03-22 20:18:17 -07:00
export const FOLLOW_BUTTON_ANIMATION = [
growBigThenSmall
]
export const CHECKMARK_ANIMATION = [
fadeColorToPressedState
2018-03-22 20:18:17 -07:00
]