diff --git a/.changeset/weak-swans-sparkle.md b/.changeset/weak-swans-sparkle.md new file mode 100644 index 0000000000..ee99d8bc70 --- /dev/null +++ b/.changeset/weak-swans-sparkle.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Due to regression on mobile WebKit browsers, reverts a change made for JavaScript animations during view transitions. diff --git a/packages/astro/src/transitions/router.ts b/packages/astro/src/transitions/router.ts index a68e423d05..8655d94c2b 100644 --- a/packages/astro/src/transitions/router.ts +++ b/packages/astro/src/transitions/router.ts @@ -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((r) => setTimeout(r)); // Trigger view transition animations waiting for data-astro-transition-fallback document.documentElement.setAttribute(OLD_NEW_ATTR, phase); const nextAnimations = document.getAnimations();