2022-11-24 17:20:35 +00:00
|
|
|
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
|
|
|
}
|
2022-11-24 17:20:35 +00: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 = [
|
2022-11-24 17:20:35 +00:00
|
|
|
growBigThenSmall
|
|
|
|
]
|
|
|
|
|
|
|
|
export const CHECKMARK_ANIMATION = [
|
|
|
|
fadeColorToPressedState
|
2018-03-22 20:18:17 -07:00
|
|
|
]
|