03.05 · Page Transitions

Slide Transition

Pages slide across, and going back slides the other way. Best for step flows.

Click it

Click Work or About at the top of the box, or press Show me.

Try it

Change a setting, then try it again or press Show me.

Direction

Forward and back reverses the slide when you go back.

Speed

How long each slide takes.

More optionsFewer options

Feel

Springy goes a little past, then settles.

Gap between pages

The new page starts a moment later, leaving a gap.

Copy the prompt

Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.

Add slide transitions to [the pages or steps you want to move between]. When the visitor changes page, move the old page out of one side while the new page comes in from the other, like panels on a track. When the direction follows the navigation, going forward slides to the left and going back slides to the right, as phone apps do. Move the pages with transforms only, never by changing their position or size, and keep pages that are off screen from catching taps. If the visitor has reduced motion turned on, switch pages without sliding. Match the settings listed below.

Replace the words in brackets with your own element. Your settings are added at the end.

Free and open source. If this helped, a star on GitHub helps other people find it.

Star on GitHub

What it is

The full explanation is in README.md.

Good for

  • Step-by-step flows
  • Checkout
  • Onboarding
  • Carousels

Avoid on

  • Unrelated pages