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.
Inside, the next page sits on top, cut to an opening growing from a point at the portal; dashed lines mark its edge every tenth of the time. Click the portal or press Show me.
Switches at once simply changes page; Opens from portal grows the next page out of the portal you click. Click the 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.
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.
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.