Skip to content

Commit

Permalink
fix: broken animations when using swcminify #2 (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcbyr committed Nov 23, 2022
1 parent 23b069f commit 2c801ca
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 = 0 + endPosition
const startPosition = Number(endPosition)
const animationDuration = keyframe.earlyExit ?? keyframe.duration
const easing = keyframe.easing
const distance =
Expand Down

0 comments on commit 2c801ca

Please sign in to comment.