kopia lustrzana https://github.com/shoelace-style/shoelace
revert fix
rodzic
326816e7b7
commit
09224041b8
|
|
@ -9,8 +9,7 @@ export function animateTo(el: HTMLElement, keyframes: Keyframe[], options?: Keyf
|
||||||
|
|
||||||
const animation = el.animate(keyframes, {
|
const animation = el.animate(keyframes, {
|
||||||
...options,
|
...options,
|
||||||
duration: prefersReducedMotion() ? 0 : options!.duration,
|
duration: prefersReducedMotion() ? 0 : options!.duration
|
||||||
fill: 'forwards'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
animation.addEventListener('cancel', resolve, { once: true });
|
animation.addEventListener('cancel', resolve, { once: true });
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue