pull/878/head
Cory LaViska 2022-08-23 10:42:01 -04:00
rodzic 326816e7b7
commit 09224041b8
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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 });