Chasse.

Page router

Chasse.

Page transitions for any site.

Chasse fetches the next page, keeps both on screen while your animation runs, then swaps them. No framework, no reload.

12 KB
gzipped
0
dependencies
3
modes
3
gestures

What it does

Any order

Run the pages together, one after the other, or bring the new page in first.

Both pages on screen

Cross-fade, slide or reveal. The old page stays until your animation ends.

Reverses mid-way

Press back during a transition and it plays backwards. Nothing is fetched again.

Gestures

Swipe between pages, drag in from the edge, drag down to close. The page follows your finger.

Any animation tool, or none

Return a Web Animation, a GSAP timeline, a promise, or hand the swap to the browser's View Transitions API. Chasse doesn't mind.

Accessible

The page is locked while it moves, then focus moves and the new title is announced.

Try one

Each button runs a different transition into its own page. Some use the Web Animations API, one is pure CSS, one is GSAP and four use the browser's View Transitions API.

Install

From npm, or from a script tag on sites with no build step.

npm
npm install @studio-lumio/chasse
CDN
<script src="https://cdn.jsdelivr.net/npm/@studio-lumio/chasse@0.6"></script>