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.
Inside, each tile's shade is its turn: lighter tiles cover the page first, and once all are in, the page swaps underneath. Click Work or About, or press Show me.
Plain fade blends the two pages evenly; Dissolves in tiles covers the old page tile by tile in the chosen pattern, then shows the new one. Click Work or About, 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.
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.
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.