03.11 · Page Transitions

Dissolve Transition

The page breaks into tiles that give way to the next. Best for photo galleries.

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.

Pattern

The order in which the tiles appear.

Tile size

Small tiles look like grain; large ones like blocks.

Speed

How long the tiles take to cover the page.

More optionsFewer options

The tiles also fade away to reveal the new page.

Copy the prompt

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

Add a dissolve transition to [the pages or images you want to switch between]. Lay a grid of tiles over the old page and fade each tile in at a slightly different moment, following a pattern such as random, a diagonal sweep or rings from the middle, so the old page breaks up instead of fading evenly. Swap the page while the tiles cover it, then remove the tiles, or fade them away in the same pattern to reveal the new page. Give each tile its own delay and let the browser run the fades. If the visitor has reduced motion turned on, use a short, plain 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

  • Photo galleries
  • Slideshows
  • Retro and game sites

Avoid on

  • Everyday navigation