Skip to content
Elements/

Page Transition

Transitions between pages and gallery-based morph animations.

Tap a card to play the effect.

Page transitions

Every card is a small site. Click the page or a link in its bar to change it; the preloader replays on click.

Page Transition PushNew
Page Transition Scale DownNew
Page Transition Zoom ThroughNew
Page Transition Step BackNew
Page Transition Iris WipeNew
Page Transition Type MaskNew
Page Transition Title CarryNew
Page Transition Stair WipeNew
Page Transition Torn PaperNew
Page Transition Tile FlipNew
Page Transition Stripe ShuffleNew
Page Transition Edge WipeNew

What does a page transition do?

A page transition connects two pages instead of cutting hard between them. It confirms that the click landed and bridges the time until the next page is ready. Each of the 22 transitions here runs in a small sample site: a click changes the page, and you see the transition the way it will feel in your project. There are calm ones like a cross fade or a push and bolder ones like a curtain, slats or an iris that opens in a circle. A preloader with a counter is included too.

The more often people change pages on a site, the shorter and calmer the transition should be. A shop with lots of clicks suits a cross fade, a portfolio with a few large chapters can carry a curtain. The transitions are React components with framer-motion and Tailwind CSS. With reduced motion the page changes without animation.

Related guides

FAQ

Frequently asked questions

Didn't find your question? Write to us, we answer ourselves.

Get in touch

Each file contains the transition and a small sample site that shows it off. There, a piece of state triggers the change: the number of the page currently shown. In your project you replace that state with the path from your router and wrap the transition around the page content in your layout. When the path changes, the transition runs. You can delete the sample site around it afterwards.

Yes. The transitions are not tied to a particular router, they only need a value that changes on every page change, usually the path. The Next.js App Router has one quirk: it replaces the old page immediately on navigation. Bringing the new page in works there directly, animating the old one out takes an extra step.

No. These transitions run on framer-motion in every browser that runs React. The View Transitions API is the route without a library and suits sites that load a new page from the server on every click. A separate guide explains how that works.

When reduced motion is turned on in the system, the page changes without animation. The new page is there right away, nothing wipes, pushes or zooms.