-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
View Transition: No directive to just do morphing? #12861
Comments
Hi @dreamstar-enterprises, to me that sounds like Astro's fallback behavior for browsers without native support for view transitions. By any chance, do you experience this on Firefox? If this shows on Edge, Chrome or Safari, could you please add a reproduction? |
Hello @dreamstar-enterprises. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Yes, I tested this on Firefox. |
It half works in Chrome. But the fade effect doesn't work. It just immediately switches. In Firefox, the fade effect works, but, it completely fades out and fades back in (so blue -> nothing -> red) Here is the minimal repoducable code:
|
Firefox has no native support for view transitions yet. This is the last major browser that hasn't. Astro provides a fallback with some limitations:
I can not reproduce that fade doesn't work on Chrome. Just ran you example and it works as expected. Does it look more as you expect when you move the You might also ask for help in the #support channel on Astro's discord: https://astro.build/chat |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I've tried all the view transition options, but couldn't get my header to morph when navigating from one page to another.
The header is the same, apart from its colour that changes.
When I tried any of these:
https://docs.astro.build/en/guides/view-transitions/#built-in-animation-directives
e.g.
<header transition:name='header'>...
The header would completely fade out and then re-appear. So it went like blue -> disappeared -> red
I wanted it to do more like blue -> red
I tried to create a custom animation with key frames, as also described in the docs, but that didn't work either.
Any ideas?
What's the expected result?
Should just morph (should be option) from old to new state, rather than completely disappear and re-appear
Link to Minimal Reproducible Example
seeabove
Participation
The text was updated successfully, but these errors were encountered: