03.10 · Page Transitions

Portal / Tunnel Zoom

The next page opens out of a circle you click. Best for big reveals.

Click it

Click the round portal or a page name, or press Show me.

Try it

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

Portal shape

A circle feels like a tunnel; a square like a window.

Speed

Slower reads as travel; too fast looks like a wipe.

More optionsFewer options

Feel

Speeding up feels like diving in.

Copy the prompt

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

Add a portal transition to [the element that should open into the next page]. When the visitor clicks it, show the next page through an opening that starts as a point at the element's center and grows until the new page fills the view, as if diving through a window. Put the new page underneath first and only grow the visible opening, measuring the element's position at the moment of the click so the opening starts exactly there. Make the opening big enough at the end to reach the corners. If the visitor has reduced motion turned on, show the new page at once. 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

  • Big reveals
  • Galleries
  • Story chapters
  • Calls to action

Avoid on

  • Everyday navigation