03.07 · Page Transitions
Flash / Light Leak Transition
A burst of light hides the moment the page changes. Best for bold, lively sites.
Click it
Click Work or About at the top of the box, or press Show me.
Inside, the flash is drawn as an outline so the page stays in view: it switches at the brightest moment, marked on the strip below. Click Work or About, or press Show me.
Hard cut switches the page with a visible jolt; With a flash switches it at the peak of a burst of light. Click Work or About, or press Show me.
Try it
Change a setting, then try it again or press Show me.
Flash color
White looks like a camera flash; colors, a light leak.
Speed
How fast the flash rises and fades.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a flash transition to [the pages or scenes you want to switch between]. Cover the content with a full-size colored layer that rises to its peak, swap the page while it is covered, then fade the layer away to reveal the new page, like a burst of light hiding a cut in a film. At full strength the change is completely hidden. Let the fade-out take a little longer than the rise. Keep flashes rare, never several in one second, to protect people who are sensitive to flashing light. If the visitor has reduced motion turned on, switch pages with no flash. 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.