ViewTransitions API affecting other page animations after scolling/navigation #8764
Closed
1 task done
Labels
feat: view transitions
Related to the View Transitions feature (scope)
pkg: astro
Related to the core `astro` package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Verified it is happening in Chrome and Safari.
Describe the Bug
I created some custom animations (using motion one) for the header on my website which you can view here:
I tested out the ViewTransitions API and added it to my
<head>
in a root layout component I have. Nice work on this by the way!The ViewTransitions API appears to affect the other animations on the page after scrolling or navigating. The animations work correctly at first and then they seem to "freeze" an no longer work. To reproduce the bug scroll or move around the page a bit and notice how the fade/scale animations in the header stop working after navigating between pages and it overlaps the text. I believe this is probably some kind of interaction between the ViewTransitions API and my own animations.
What's the expected result?
All other page animations continue to work as intended.
Link to Minimal Reproducible Example
https://github.com/ehowey/erichoweydev/pull/39
Participation
The text was updated successfully, but these errors were encountered: