Skip to content

Commit

Permalink
Merge pull request #2210 from framer/fix/use-instant-transition-delay
Browse files Browse the repository at this point in the history
Ignore delay when instant animation flag is set
  • Loading branch information
mergetron[bot] authored Jun 29, 2023
2 parents cd676af + 1d753ad commit 8b60e0a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ export const animateMotionValue = (
* If we can't animate this value, or the global instant animation flag is set,
* or this is simply defined as an instant transition, return an instant transition.
*/
return createInstantAnimation(options)
return createInstantAnimation(
instantAnimationState.current
? { ...options, delay: 0 }
: options
)
}

/**
Expand Down

0 comments on commit 8b60e0a

Please sign in to comment.