Skip to content

Commit

Permalink
fix: broken animations when using swcminify (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcbyr committed Nov 23, 2022
1 parent d70277f commit 781229f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/animator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Animator(
currentKeyframe = 0
duration = 0
keyframes = _keyframes.map(keyframe => {
const startPosition = endPosition
const startPosition = 0 + endPosition
const animationDuration = keyframe.earlyExit ?? keyframe.duration
const easing = keyframe.easing
const distance =
Expand Down

0 comments on commit 781229f

Please sign in to comment.