Skip to content

Conversation

@martrapp
Copy link
Owner

Description

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'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/

@martrapp martrapp merged commit 5efdf5e into main Sep 25, 2024
4 checks passed
@martrapp martrapp deleted the signal branch September 25, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants