SvelteKit 1.24 brings a new lifecycle hook to make view transitions integration much easier. It streamlines the process of animating between two page states, which is especially useful for page transitions. OnNavigate, you can trigger a view transition by calling and passing a callback that updates the DOM somehow.

8m read timeFrom svelte.dev
Post cover image
Table of contents
How view transitions work permalinkHow onNavigate works permalinkGetting started with view transitions permalinkCustomizing the transition with CSS permalinkTransitioning individual elements permalinkReduced motion permalinkWhat’s next? permalinkResources permalink
1 Comment

Sort: