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.
Inside, the view is zoomed out: the box is a window, and the old and new page slide past it together, like panels on a track. Click Work or About, or press Show me.
Switches at once simply changes page; Slides across moves the old page out one way as the new one comes in from the other end. Click Work or About, 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.
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.
Your settings
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 GitHubWhat it is
The full explanation is in README.md.