The example for transition:animate:"none" does not work as advertised #9977
Labels
improve or update documentation
Enhance / update existing documentation (e.g. add example, improve description, update for changes)
📚 Subject area/topic
View Transitions
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/guides/view-transitions/#built-in-animation-directives
📋 Description of content that is out-of-date or incorrect
transition:animate
will only work on the root element if it's used within a component that's shared across all pages.The simplest solution is to use a common layout, here is the most minimal version:
https://discord.com/channels/830184174198718474/1305515717101359104
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
here is a Stackblitz for the example from the support thread
https://stackblitz.com/edit/withastro-astro-emfhs5?file=src%2Fpages%2Findex.astro
not been able to turn off transitions in this example is inherent to Astro's approach and can not really be repaired.
The fix in docs would be to use transition:animate="none" only in a layout, not directly on the
<html>
element of a layout-less.astro
file. (this adds complexity to the example, but currently it is simply wrong)The text was updated successfully, but these errors were encountered: