diff --git a/src/internal/animate.ts b/src/internal/animate.ts index 7d64be96..217957fd 100644 --- a/src/internal/animate.ts +++ b/src/internal/animate.ts @@ -9,8 +9,7 @@ export function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: Keyf const animation = el.animate(keyframes, { ...options, - duration: prefersReducedMotion() ? 0 : options!.duration, - fill: 'forwards' + duration: prefersReducedMotion() ? 0 : options!.duration }); animation.addEventListener('cancel', resolve, { once: true });