03.08 · Page Transitions
Blur Transition
The old page blurs away and the new one comes into focus. Best for photo sites.
Click it
Click Work or About at the top of the box, or press Show me.
Inside, the strip shows each page's blur: the old page blurs out, the pages swap where both are blurred, then the new page sharpens. Click Work or About, or press Show me.
Plain fade only fades between the pages; With blur blurs the old page out and brings the new one into focus, hiding the swap. Click Work or About, or press Show me.
Try it
Change a setting, then try it again or press Show me.
How blurry it gets
Heavy blur is costly for the browser to draw.
Speed
How long each half, blurring and sharpening, takes.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a blur transition to [the pages or views you want to switch between]. When the page changes, blur the old page until it is out of focus, bring in the new page just as blurred, then sharpen it into focus, like a camera pulling focus from one subject to another. Fading while blurring hides the moment of the swap. Blur is costly for the browser to draw, so use it only on changes the visitor starts, never on anything that repeats by itself, and remove the blur completely when it ends. If the visitor has reduced motion turned on, switch pages without blurring. 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.