Skip to content

Commit

Permalink
Skipping duration: 0 animations
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Apr 10, 2024
1 parent 88cdd53 commit cd7a587
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ export const animateMotionValue =

let shouldSkip = false

if ((options as any).type === false) {
if (
(options as any).type === false ||
(options.duration === 0 && !options.repeatDelay)
) {
options.duration = 0

if (options.delay === 0) {
shouldSkip = true
}
Expand Down

0 comments on commit cd7a587

Please sign in to comment.