Home
Navigate using the links above. The About link uses the default fade transition. The Work link uses the slide transition when the target path is /work, via a condition on that transition (no flyvaTransition on the link). Per-link flyvaOptions still passes direction.
refStack demo
This element is registered via useRefStack('hero', ref). The default transition accesses it with globalGetRefStackItem('hero') and scales it down during leave. Navigate away and watch it shrink independently from the content fade.
What's being tested
- Default transition — FlyvaLink without explicit transition name falls back to
defaultTransition - Transition selection — Work nav uses
slideTransitionmatched byconditionon the target URL; project cards use explicitexpandTransition - refStack — The hero block registers itself via
useRefStack. The default transition accesses it viaglobalGetRefStackItemand animates it separately during leave