mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
revert fix
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user