Skip to content

Commit

Permalink
Merge pull request #8 from abboahene/main
Browse files Browse the repository at this point in the history
Fixes site animation demos not working
  • Loading branch information
anubra266 authored Mar 16, 2024
2 parents dedea88 + 67211aa commit edf9ac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion packages/animated-pandacss/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { keyframes } from './keyframes'

const preset: Preset = definePreset({
theme: {
keyframes,
extend: {
keyframes,
},
},
utilities: {
extend: {
Expand Down
6 changes: 0 additions & 6 deletions packages/animated-pandacss/src/keyframes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,28 +544,22 @@ export const keyframes = defineKeyframes({
},
flip: {
'0%': {
WebkitTransform: 'perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)',
transform: 'perspective(400px) scaleX(1) translateZ(0) rotateY(-1turn)',
animationTimingFunction: 'ease-out',
},
'40%': {
WebkitTransform: 'perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)',
transform: 'perspective(400px) scaleX(1) translateZ(150px) rotateY(-190deg)',
animationTimingFunction: 'ease-out',
},
'50%': {
WebkitTransform: 'perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)',
transform: 'perspective(400px) scaleX(1) translateZ(150px) rotateY(-170deg)',
animationTimingFunction: 'ease-in',
},
'80%': {
WebkitTransform:
'perspective(400px) scale3d(0.95, 0.95, 0.95) translateZ(0) rotateY(0deg)',
transform: 'perspective(400px) scale3d(0.95, 0.95, 0.95) translateZ(0) rotateY(0deg)',
animationTimingFunction: 'ease-in',
},
to: {
WebkitTransform: 'perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)',
transform: 'perspective(400px) scaleX(1) translateZ(0) rotateY(0deg)',
animationTimingFunction: 'ease-in',
},
Expand Down

0 comments on commit edf9ac7

Please sign in to comment.