mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
revert handling of JavaScript animations during view transitions (#10841)
This commit is contained in:
parent
68e3b7c59d
commit
a2df344bff
2 changed files with 5 additions and 2 deletions
5
.changeset/weak-swans-sparkle.md
Normal file
5
.changeset/weak-swans-sparkle.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Due to regression on mobile WebKit browsers, reverts a change made for JavaScript animations during view transitions.
|
|
@ -397,8 +397,6 @@ async function updateDOM(
|
|||
return style.animationIterationCount === 'infinite';
|
||||
}
|
||||
const currentAnimations = document.getAnimations();
|
||||
// allow animations triggered by viewTransition.ready to start
|
||||
await new Promise<void>((r) => setTimeout(r));
|
||||
// Trigger view transition animations waiting for data-astro-transition-fallback
|
||||
document.documentElement.setAttribute(OLD_NEW_ATTR, phase);
|
||||
const nextAnimations = document.getAnimations();
|
||||
|
|
Loading…
Reference in a new issue