diff --git a/src/app/components/message/Reaction.css.ts b/src/app/components/message/Reaction.css.ts index 6182b44b..371e7b99 100644 --- a/src/app/components/message/Reaction.css.ts +++ b/src/app/components/message/Reaction.css.ts @@ -64,6 +64,7 @@ export const ReactionText = style([ lineHeight: toRem(20), }, ]); + const scaleAnimation = keyframes({ '0%': { transform: 'scale(1)', @@ -76,7 +77,22 @@ const scaleAnimation = keyframes({ }, }); export const ReactionChangeAnimation = style({ - animation: `${scaleAnimation} 1000ms ease-in-out infinite`, + animation: `${scaleAnimation} 700ms ease-in-out infinite`, +}); + +const dropAnimation = keyframes({ + '0%': { + transform: 'translateY(0)', + }, + '50%': { + transform: 'translateY(0.1em)', + }, + '100%': { + transform: 'translateY(0)', + }, +}); +export const ReactionDropAnimation = style({ + animation: `${dropAnimation} 700ms ease-in-out infinite`, }); export const ReactionImg = style([ diff --git a/src/app/components/message/Reaction.tsx b/src/app/components/message/Reaction.tsx index 98b5ef0e..ef373e78 100644 --- a/src/app/components/message/Reaction.tsx +++ b/src/app/components/message/Reaction.tsx @@ -47,11 +47,7 @@ export const Reaction = as< )} - + {count}