From 09224041b8e70ec2fd02b1b3188e8b1fb3e83022 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 23 Aug 2022 10:42:01 -0400 Subject: [PATCH] revert fix --- src/internal/animate.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/internal/animate.ts b/src/internal/animate.ts index 7d64be963..217957fdf 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 });