03.13 · Page Transitions

Circle Reveal

Pages grow from any spot you click and shrink back into it. Best for app navigation.

Click it

Click anywhere on the page or a page name at the top of the box, or press Show me.

Try it

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

Where it starts

Center and Corner (bottom right) ignore where you click.

Speed

How long the circle takes to cover the page.

More optionsFewer options

Going to an earlier page shrinks the old one into the spot instead.

Copy the prompt

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

Add a circle reveal to [the links or buttons that change the page]. When the visitor clicks or taps, put the new page on top of the old one and show it only inside a circle that starts as a dot and grows until it covers everything. Make its final size reach the farthest corner from where it starts, so no corner is left uncovered. When it starts from the click, measure the spot at that moment; a press of the keyboard has no spot, so use the middle of the pressed button. Grow only the visible circle; neither page moves. If the visitor has reduced motion turned on, crossfade the pages 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

  • App navigation
  • Theme switches
  • Menu buttons
  • Calls to action

Avoid on

  • Quick tab changes