-
-
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
transition:animate="none"
still fades content
#10241
Comments
Hi @metonym, after a quick glance at you code:
Here If you want to switch off all animations do the following: This leaves a single transition group named B) Switch these animations off by setting a single
This reduced the animations: Technically, that only switched off the browser generated fade of the old and new image. There still remains the group animation that scales and moves the new As an alternative to setting
You might even replace the word |
@martrapp Perfect, thank you for the detailed explanation! Going with the workaround for now. |
Applies the workaround suggested in withastro/astro#10241
Good to hear! Ping me on this issue, if there are further questions. The PR mentioned above now also addresses the groups morph animation. Closing this issue now. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I'm using View Transitions and explicitly want there to be no animations:
However, I can observe a subtle fade/fade out. The docs say that
prefers-reduced-motion
is respected (which is great). However, my expectation was thatanimate="none"
would override this behavior, regardless of the preferred motion setting.This behavior can be observed on the following site: https://svhe.onrender.com/
Source code for the View Transition usage: https://github.com/metonym/svelte-highlight/blob/master/www/layouts/Layout.astro#L17
Repro steps:
What's the expected result?
The expected result is that explicitly setting
transition:animate="none"
will not entail any animation.Link to Minimal Reproducible Example
https://github.com/metonym/svelte-highlight/blob/master/www/layouts/Layout.astro#L17
Participation
The text was updated successfully, but these errors were encountered: