Skip to content

Commit

Permalink
Merge pull request #62 from qpwoei0123/feature/new-anim-jelly
Browse files Browse the repository at this point in the history
feat: add "jelly" animation
  • Loading branch information
midudev authored Sep 2, 2024
2 parents ff55f4e + 3c2977b commit 3e493df
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ export default {
'impulse-rotation-right': 'impulse-rotation-right 1s ease-in-out both',
'impulse-rotation-left': 'impulse-rotation-left 1s ease-in-out both',
dancing: 'dancing 1s ease-in-out both',
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite'
pulse: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
jelly: `jelly 1s ease-out forwards`,
},
keyframes: {
'fade-in': {
Expand Down Expand Up @@ -437,7 +438,17 @@ export default {
'50%': { transform: 'skew(40deg)' },
'75%': { transform: 'skew(-40deg)' },
'100%': { transform: 'skew(0deg)' }
}
},
jelly: {
'0%': { transform: 'scale(1, 1)' },
'20%': { transform: 'scale(1.25, 0.75)' },
'40%': { transform: 'scale(0.75, 1.25)' },
'60%': { transform: 'scale(1.15, 0.85)' },
'75%': { transform: 'scale(0.95, 1.05)' },
'85%': { transform: 'scale(1.05, 0.95)' },
'92%': { transform: 'scale(1, 1.02)' },
'100%': { transform: 'scale(1, 1)' },
},
},
animationDelay: {
none: '0ms',
Expand Down

0 comments on commit 3e493df

Please sign in to comment.