Skip to content

Commit

Permalink
Add pulsating hand
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jul 11, 2024
1 parent 45b5fcc commit 46982b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/assets/graphics/hand-point.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/modals/LikeIntroModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function LikeIntroModal() {
},
}}
/>
<HandPoint className='pointer-events-none absolute -bottom-5 left-11 animate-pulse' />
<HandPoint className='pointer-events-none absolute -bottom-5 left-11 h-12 w-12 animate-scale' />
</div>
<div className='mt-6 flex flex-col items-center gap-2 text-center'>
<span className='font-medium text-text-muted'>Points earned</span>
Expand Down
9 changes: 7 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,19 @@ module.exports = {
extend: {
animation: {
fade: 'fadeOut .4s ease-in-out',
scale: 'scale 1s ease-in-out infinite',
},

keyframes: () => ({
keyframes: {
fadeOut: {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
}),
scale: {
'0%, 100%': { transform: 'scale(1)' },
'50%': { transform: 'scale(1.25)' },
},
},

gridTemplateRows: {
0: 'repeat(1, minmax(0, 0fr))',
Expand Down

0 comments on commit 46982b5

Please sign in to comment.