New @vtbag component for Astro sites using native cross-document view transitions.
Th <TurnSignal /> detects backward history traversals and sets the data-astro-transition="back" as the <ViewTransitions /> component does, making native cross-document view transitions compatible with the CSS generated by Astro'stransition:animate` directive!
Description
New @vtbag component for Astro sites using native cross-document view transitions. Th
<TurnSignal />
detects backward history traversals and sets thedata-astro-transition="back"
as the<ViewTransitions /> component does, making native cross-document view transitions compatible with the CSS generated by Astro's
transition:animate` directive!Tests
See demo at https://events-3bg.pages.dev/signal-demo/
Docs & Examples
See https://events-3bg.pages.dev/library/TurnSignal/