Link Types!
Want to select a special animation but only for that link from Home to About?
Tell the link about it!
You find such a special link on the Home page of this demo. Clicking it navigates you to the About page with an animation that is different from the one that starts when you click the About link in the header. Press it to see the effect. Then navigate back through the browser history and see yet another animation. This is the HTML for the link on the Home page:
It tells the Turn-Signal component to set the turn
view transition type when the link is clicked, and to set flip
when doing a history navigation back across that link. For more details visit the @vtbag documentation↗.
And of course we need some additional CSS for the animations. Other than the previous demos, this one does not use transition:*
directives but explicitly provides definitions for all effects. Here is the complete CSS:
“That’s all folks!” (return to the overview).