A morphing or full page transition enabled slide creation starter kit that uses View Transitions to do all the work.
Until View Transitions are supported across all browsers, this API and starter kit only works in Chrome Canary with chrome://flags/#view-transition-on-navigation enabled.
Inside the /pages
folder you create your slides, each slide is it's own Astro component that uses the /src/layouts/Slide.astro
layout.
There's one component called Controls.astro
that handles making and placing the next arrow.
It's all generally handled for you! Just use <h1>
elements, or images or links. Inside the /src/styles/transitions.css
you'll find the unique names given to the elements that tells the browser which shared elements should morph. Like if you have a code snippet on one page, and the next page also has one, the browser will transition between those snippets.