03.14 · Page Transitions

Overlay Wipe

A colored panel sweeps over the page as it changes. Best for portfolio sites.

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

The panel comes in on one side and leaves on the other.

Panel color

A brand color makes the change feel like part of the site.

A lighter panel leads the way in and trails on the way out.

More optionsFewer options

Speed

How long each sweep of the panel takes.

Copy the prompt

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

Add an overlay wipe to [the pages you want to switch between]. When the visitor changes page, sweep a solid colored panel across until it covers the whole page, swap the page while it is covered, then sweep the panel on out of the opposite side to reveal the new page. Move the panel only by sliding it, never by resizing it, and keep the covered moment short so the change still feels quick. Ease each sweep so the panel starts and stops softly. A second, lighter panel can lead the way in and trail the first on the way out. If the visitor has reduced motion turned on, use a quick fade instead. 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

  • Portfolio sites
  • Agency sites
  • Brand-colored sites
  • Chapter breaks

Avoid on

  • Apps used all day