From c3f344d870bcbfa642ba24b8d3b1a88b191da724 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Mon, 4 Sep 2023 14:21:38 +0200 Subject: [PATCH] Updating --- .../src/animation/interfaces/visual-element-target.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/framer-motion/src/animation/interfaces/visual-element-target.ts b/packages/framer-motion/src/animation/interfaces/visual-element-target.ts index 42e9a1e959..d1ddbde1e7 100644 --- a/packages/framer-motion/src/animation/interfaces/visual-element-target.ts +++ b/packages/framer-motion/src/animation/interfaces/visual-element-target.ts @@ -8,7 +8,7 @@ import type { VisualElementAnimationOptions } from "./types" import { animateMotionValue } from "./motion-value" import { isWillChangeMotionValue } from "../../value/use-will-change/is" import { setTarget } from "../../render/utils/setters" -import { AnimationPlaybackControls } from "../types" +import { AnimationPlaybackControls, Transition } from "../types" /** * Decide whether we should block this animation. Previously, we achieved this @@ -64,7 +64,6 @@ export function animateTarget( const valueTransition = { delay, - syncStart: false, elapsed: 0, ...transition, } @@ -84,7 +83,7 @@ export function animateTarget( value, frame ) - valueTransition.syncStart = true + ;(valueTransition as Transition).syncStart = true } }