Skip to content
animorio
IT
Back to the library

Blur-up gallery

Images, TransitionsGSAPEasyCompressed weight: Demo 6.7 KBGSAP 28 KBFreeDownload the zip

The gallery of Norrland, a made-up photography studio, with six real winter photos that load the way a well made site loads them: each frame is born in the average colour of its photo, then a tiny blurred copy arrives under a light grain, a thin line fills at the bottom while the real file comes in, and the sharp photo lands on top with a fade and a focus pull. The corner rounds a touch, the caption arrives last, and the frames finish in a natural order. Reload runs it again. Minimal style, a single accent.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Blur-up gallery" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Blur-up gallery</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- The gallery of an invented photography studio, Norrland, with six winter photographs that load the way a good
       site loads them: each frame is born in the average colour of its photo, then a tiny blurred copy arrives, a thin
       line fills at the bottom while the real file comes in, and the sharp photo lands on top with a fade and a focus
       pull. Reload runs it all again. -->
  <main class="pagina">
    <header class="testa">
      <div class="testa__sx">
        <p class="marca">
          <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3.5 18.5l6-9.5 3.6 5.4 2.4-3.4 5 7.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
          Norrland Studio
        </p>
        <h1 class="titolo">Winter light</h1>
        <p class="nota"><span class="nota__riga" data-stato>Loading photographs</span></p>
      </div>
      <button type="button" class="pillola" data-ricarica aria-label="Reload the gallery">
        <span class="pillola__fondo" aria-hidden="true"></span>
        <span class="pillola__dentro">
          <svg class="pillola__icona" data-icona viewBox="0 0 24 24" aria-hidden="true"><path d="M19 12a7 7 0 1 1-2.05-4.95" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"/><path d="M19.2 4.6v3.6h-3.6" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>
          <span class="pillola__testo">Reload</span>
        </span>
      </button>
    </header>

    <ul class="griglia">
      <li class="riquadro" data-riquadro data-durata="1.25" data-parte="0" style="--medio:#6f7371">
        <figure class="cornice" data-cornice>
          <img class="piccola" data-piccola src="lago-piccola.webp" width="24" height="14" alt="" aria-hidden="true">
          <span class="grana" data-grana aria-hidden="true"></span>
          <img class="nitida" data-nitida src="lago.webp" width="960" height="578" alt="A frozen lake under jagged mountains, the ice cracked green and the peaks dusted with snow">
          <span class="barra" data-barra aria-hidden="true"><span class="barra__pieno" data-pieno></span></span>
        </figure>
        <p class="dida" data-dida><span class="dida__nome">Glacier lake</span><span class="dida__meta">f/11</span></p>
      </li>
      <li class="riquadro" data-riquadro data-durata="1.7" data-parte="0.18" style="--medio:#9799aa">
        <figure class="cornice" data-cornice>
          <img class="piccola" data-piccola src="vetta-piccola.webp" width="24" height="16" alt="" aria-hidden="true">
          <span class="grana" data-grana aria-hidden="true"></span>
          <img class="nitida" data-nitida src="vetta.webp" width="960" height="640" alt="A lone pointed peak at sunset, pink clouds over a snowfield with ski tracks">
          <span class="barra" data-barra aria-hidden="true"><span class="barra__pieno" data-pieno></span></span>
        </figure>
        <p class="dida" data-dida><span class="dida__nome">North face</span><span class="dida__meta">f/8</span></p>
      </li>
      <li class="riquadro" data-riquadro data-durata="0.95" data-parte="0.32" style="--medio:#c8c7c7">
        <figure class="cornice" data-cornice>
          <img class="piccola" data-piccola src="escursione-piccola.webp" width="24" height="16" alt="" aria-hidden="true">
          <span class="grana" data-grana aria-hidden="true"></span>
          <img class="nitida" data-nitida src="escursione.webp" width="960" height="640" alt="A skier in a red jacket crossing a white plain under a grey sky">
          <span class="barra" data-barra aria-hidden="true"><span class="barra__pieno" data-pieno></span></span>
        </figure>
        <p class="dida" data-dida><span class="dida__nome">The crossing</span><span class="dida__meta">f/5.6</span></p>
      </li>
      <li class="riquadro" data-riquadro data-durata="2.05" data-parte="0.1" style="--medio:#656d74">
        <figure class="cornice" data-cornice>
          <img class="piccola" data-piccola src="fiordo-piccola.webp" width="24" height="16" alt="" aria-hidden="true">
          <span class="grana" data-grana aria-hidden="true"></span>
          <img class="nitida" data-nitida src="fiordo.webp" width="960" height="634" alt="Dark still water in a fjord with snowy mountains under heavy clouds">
          <span class="barra" data-barra aria-hidden="true"><span class="barra__pieno" data-pieno></span></span>
        </figure>
        <p class="dida" data-dida><span class="dida__nome">Fjord, dusk</span><span class="dida__meta">f/4</span></p>
      </li>
      <li class="riquadro" data-riquadro data-durata="1.4" data-parte="0.5" style="--medio:#a3bdd3">
        <figure class="cornice" data-cornice>
          <img class="piccola" data-piccola src="pendio-piccola.webp" width="24" height="16" alt="" aria-hidden="true">
          <span class="grana" data-grana aria-hidden="true"></span>
          <img class="nitida" data-nitida src="pendio.webp" width="960" height="640" alt="A bright snow slope rising to a white summit under a deep blue sky">
          <span class="barra" data-barra aria-hidden="true"><span class="barra__pieno" data-pieno></span></span>
        </figure>
        <p class="dida" data-dida><span class="dida__nome">Fresh powder</span><span class="dida__meta">f/16</span></p>
      </li>
      <li class="riquadro" data-riquadro data-durata="1.6" data-parte="0.4" style="--medio:#90aacb">
        <figure class="cornice" data-cornice>
          <img class="piccola" data-piccola src="cresta-piccola.webp" width="24" height="16" alt="" aria-hidden="true">
          <span class="grana" data-grana aria-hidden="true"></span>
          <img class="nitida" data-nitida src="cresta.webp" width="960" height="640" alt="A range of sharp snowy alpine ridges under a clear blue sky">
          <span class="barra" data-barra aria-hidden="true"><span class="barra__pieno" data-pieno></span></span>
        </figure>
        <p class="dida" data-dida><span class="dida__nome">High ridge</span><span class="dida__meta">f/9</span></p>
      </li>
    </ul>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

36 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Blur-up gallery” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a warm white page the Norrland Studio brand, the Winter light title and six frames: a frozen lake under the mountains, a peak at sunset, a skier in a red jacket on a white plain, a dark fjord, a slope of fresh snow, a row of ridges under a blue sky. At first each frame is only the average colour of its photo; then a tiny copy arrives, blown up and blurred, with a light grain, and at the bottom a thin line starts to fill: fast, then it hesitates, then it finishes. When it is full the real photo lands on top: it appears, the blur drops to zero and the scale settles from 1.04 to 1, the corner rounds a touch and the caption arrives below with the name and the aperture. The six frames finish each at their own pace, as it really happens. The line under the title rolls from «Loading photographs» to «Six photographs, sharp». On hover a loaded photo rises a few pixels with its shadow; Reload spins its arrow, takes the photos back to their colour and loads them again, and when nobody touches the gallery reloads by itself.

How it works

Three layers per frame

The frame’s background is the photo’s average colour (worked out once and written in --medio); on top sits the 24 pixel copy, blown up in CSS to 1.18 and blurred by 12 pixels, with an SVG grain in overlay; on top again the real photo, transparent. GSAP only fades the small copy: its scale stays with the CSS.

The line that hesitates

Each frame has its own time. The line fills in three legs: to 38% with power2.out, to 62% with sine.inOut and to 100% with power2.in, so it looks like a real file coming in, not one tween the same for everyone.

The focus pull

When the line is full the sharp photo goes from transparent to solid in FOCUS_TIME · 0.55, and meanwhile from blur(14px) and scale 1.04 to blur(0) and scale 1 in FOCUS_TIME with power3.out. Then the small copy and the grain go, the corner goes from 6 to 10 pixels with back.out and the caption arrives.

The natural order

Each frame starts at its own moment (data-parte) and lasts its own time (data-durata): they finish in a scattered order, as on a real page, and it is all one timeline, which Reload stops and runs again.

Start with the photos ready

The run begins only when the six photos are decoded (img.decode), so the focus pull never lands on an empty frame.

Values to change

NameFileDefaultWhat it changes
LOAD_TIMEscript.js1How long the loading lines take, as a multiple of each frame’s own time.
SPREADscript.js1How far apart the frames start loading (0 all together).
FOCUS_TIMEscript.js0.9How long the focus pull lasts, in seconds.
BLURscript.js14How blurred the photo is when it arrives, in pixels.
START_SCALEscript.js1.04How big the photo is when it arrives, before it settles to 1.
END_RADIUSscript.js10The frame’s corners once the photo is sharp, in pixels.
LIFTscript.js4How far a loaded photo rises on hover, in pixels.
AUTO_PILOTscript.js3.5After how many still seconds the gallery reloads by itself (0 never).

Try them in the Playground

When to use it

In the galleries and photo grids of a photographer, a studio, a blog, a hotel or a shop: wherever images arrive after the page and the wait should feel intended rather than like a hole.

On phones

The page is sized on the height too; the six frames stay in three smaller columns and the aperture in the caption hides. No hover: Reload is tapped.

With reduced motion

No focus pull and no movement: the lines fill and the photos arrive already sharp, with a fade; the line under the title changes with a crossfade.

Pitfalls

  • The small copy keeps its scale in the CSS: GSAP only fades it, because a GSAP transform would wipe the class one.
  • The blur filter on a photo that also scales is tweened as a whole string ("blur(14px)" to "blur(0px)"): GSAP interpolates the numbers inside the string.
  • The frame has overflow hidden and isolation: isolate, or the blown-up blurred copy spills out and the overlay grain blends with the page.
  • It starts only once the photos are decoded: with the file still coming in, the fade would show an empty frame.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 6.7 KB; the libraries: GSAP 28 KB.

Testing

Tested on 28 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations