Hi @daftspunk,
I’m trying to use Larajax Turbo view transitions with directional animations as documented here:
The default view transition crossfade works fine when I add:
<meta name="turbo-visit-control" content="enable" />
<meta name="turbo-view-transition" content="same-origin" />
However, the directional animation CSS from the docs does not seem to take effect. I only get the default browser crossfade.
I checked the runtime behavior and data-turbo-visit-direction="forward" is briefly added to the <html> element during page:visit. At that moment the CSS selectors match correctly. But the attribute is removed again around page:load / page:loaded, before the visible View Transition animation is actually running. When the animation is active, the computed animation is back to the browser default -ua-view-transition-fade-in/out.
So it looks like the direction attribute may be removed too early for the ::view-transition-old(root) / ::view-transition-new(root) rules to apply.
Is this expected behavior, or could this be a timing issue/bug in Larajax Turbo view transitions?
Thanks!