Skip to content

Commit

Permalink
fix: provide offset param conditionally if defined for Element.animate (
Browse files Browse the repository at this point in the history
  • Loading branch information
walaszczykm authored Mar 5, 2023
1 parent f068540 commit 1d1afca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framer-motion/src/animation/waapi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function animateStyle(
}: NativeAnimationOptions = {}
) {
return element.animate(
{ [valueName]: keyframes, offset: times },
{ [valueName]: keyframes, ...(times && { offset: times }) },
{
delay,
duration,
Expand Down

0 comments on commit 1d1afca

Please sign in to comment.