Skip to content
animorio
IT
Back to the library

Slot photo loader

Transitions, Images, TextGSAP, CSS onlyMediumCompressed weight: Demo 8.3 KBGSAP 28 KBFreeDownload the zip

The loader of Oldhaven, a made-up quarter of red roofs and courtyards: a real photo of the rooftops fills the screen, then closes, with a rounded clip-path, into the empty slot between «Walk to» and «Oldhaven» while the two words slide in from the sides. Explore crosses them, shows how to move around and lifts the veil on the page. Minimal style. From the loader of the Colonia Zacamil site, Awwwards Site of the Day on 1/10/2026.

Rebuilt from scratch studying coloniazacamil.com by Adoratorio Studio, 60fps: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Slot photo loader" 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>Walk to Oldhaven, the slot photo loader</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/big-shoulders-display@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/full.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the loader of Oldhaven, a made-up old quarter of red roofs and courtyards. A real photo of the rooftops fills
       the screen, then closes into the empty slot between «Walk to» and «Oldhaven»; the two words slide in from the
       sides. «Explore» crosses the words, shows how to move around, and lifts the veil on the page below. -->
  <div class="stage" data-stage>

    <!-- the page under the loader -->
    <section class="page" data-page aria-label="Oldhaven, the rooftops">
      <div class="page__photo" data-page-photo><img src="tetti.webp" alt="" width="960" height="640"></div>
      <span class="page__shade" aria-hidden="true"></span>
      <header class="page__bar">
        <p class="page__brand">Oldhaven</p>
        <p class="page__meta">[ 14 courtyards ]</p>
      </header>
      <button class="spot" type="button" data-spot style="--x: 46%; --y: 44%"><span class="spot__in" data-spot-in>Fig Court</span></button>
      <button class="spot" type="button" data-spot style="--x: 24%; --y: 62%"><span class="spot__in" data-spot-in>The old bakery</span></button>
      <button class="spot" type="button" data-spot style="--x: 72%; --y: 30%"><span class="spot__in" data-spot-in>Rooftop garden</span></button>
      <button class="pill pill--paper" type="button" data-back><span class="pill__t">Back to the start</span><span class="pill__c"><span class="pill__d"></span></span></button>
    </section>

    <!-- the loader: a veil of paper over the page -->
    <section class="loader" data-loader aria-label="Walk to Oldhaven">
      <div class="shot" data-shot aria-hidden="true">
        <div class="shot__in" data-shot-in><img src="tetti.webp" alt="" width="960" height="640" data-shot-img></div>
        <span class="shot__grain"></span>
        <p class="mark" data-mark></p>
      </div>

      <div class="row" data-row>
        <h1 class="word word--a"><span class="word__in" data-w1>Walk to</span></h1>
        <div class="slot" data-slot><span class="slot__ring" data-ring></span></div>
        <p class="word word--b"><span class="tag" data-tag>[ A walk by the residents ]</span><span class="word__in" data-w2>Oldhaven</span></p>
      </div>

      <div class="foot" data-foot>
        <button class="pill" type="button" data-explore><span class="pill__t">Explore</span><span class="pill__c"><span class="pill__d"></span></span></button>
        <p class="desc" data-desc>Oldhaven is more than red roofs.<br>Fourteen courtyards, one slow walk.</p>
      </div>

      <div class="help" data-help aria-hidden="true">
        <div class="help__row">
          <p class="help__item" data-help-item>
            <svg viewBox="0 0 48 48"><path class="help__trail" d="M8 30 C 14 22, 24 20, 31 24"/><path class="help__arrow" data-drag d="M30 17 L30 35 L34.4 31 L37.4 37.6 L40.2 36.4 L37.3 29.8 L43 29.6 Z"/></svg>
            <span class="help__t" data-t-drag>drag to wander</span>
          </p>
          <p class="help__item" data-help-item>
            <svg class="only-mouse" viewBox="0 0 48 48"><path class="help__arrow help__arrow--open" d="M24 8 C 31 8, 33 14, 33 20 L33 30 C 33 37, 29 40, 24 40 C 19 40, 15 37, 15 30 L15 20 C 15 14, 17 8, 24 8 Z"/><path class="help__wheel" data-wheel d="M24 14 L24 20"/></svg>
            <svg class="only-touch" viewBox="0 0 48 48"><path class="help__trail" d="M12 36 L36 12"/><rect class="help__sq" data-pinch-a x="15" y="27" width="6" height="6"/><rect class="help__sq" data-pinch-b x="27" y="15" width="6" height="6"/></svg>
            <span class="help__t" data-t-zoom>scroll to zoom in &amp; out</span>
          </p>
        </div>
        <span class="help__line" data-help-line></span>
        <p class="help__more" data-help-more><span>tap a courtyard</span> <span>to learn more</span></p>
      </div>
    </section>
  </div>

  <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.

31 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 “Slot photo loader” 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

A real photo of a quarter's red rooftops lights up full screen and settles from 1.1 to 1, while the name rises letter by letter at the bottom, in paper colour. Then the photo closes into the slot between the two words: the rounded clip-path tightens on the empty box and the photo inside goes to .8. «Walk to» comes in from the left and «Oldhaven» from the right, settling from a heavier weight to the right one; the closed strip gets a hairline of light and a soft shadow, and the photo inside drifts slowly. Below, the black Explore pill whose paper circle runs to the other end on hover. On click the words cross towards the centre, the strip goes, the drawn instructions show up and move (drag, zoom) with the line about the courtyards, then the veil lifts on the page of rooftops with three courtyards popping up.

How it works

The empty slot

The row has three flex parts: the first word, an empty box (the slot) and the second word. The photo is not in the slot: it is a full screen layer under the row. The words use the site's size, min(13vw, 200px, 23.7vh), scaled down by JS when they do not fit; in portrait they sit above and below the slot.

The measured inset

From getBoundingClientRect of the slot and of the loader come the four margins, written into --t, --r, --b, --l. The is-shut class takes the clip-path from inset(0 0 0 0 round 0) to inset(var(--t) var(--r) var(--b) var(--l) round 18px) with transition 1.3s cubic-bezier(.645,.045,.355,1): on resize the margins are measured again, even halfway.

The timeline

Photo from opacity 0 in 1.5 s and from scale 1.1 to 1 in 2 s; the paper name rises with a .055 stagger in 1 s power3.out at .6 and leaves at 2; the closing at 1.8; the words from -400 and +400 px in 1.7 s power3.inOut at 2.2, linear opacity from 2.7; button and line at 3 and 3.1.

The button with the circle

A 37 px black pill with a 25 px paper circle on the right. On hover the circle runs to the other end with translateX(calc(var(--width) * -1 + 37px)), the label moves 20 px and the dot grows to 1.5, in .5 s with the same curve; --width is measured by JS.

Explore and the veil

The words cross by ±20% of the width in 1.4 s (in portrait they move up and down 80 px), the strip leaves in .6 s, the instructions come at 1.6 and the line at 2, everything goes at 4 and the veil lifts in 1.2 s at 4.75. Below, the page settles from 1.08 and the three courtyards pop up with back.out(1.7), one every .3 s.

Values to change

NameFileDefaultWhat it changes
SHUTscript.js1.3Seconds the photo takes to close into the slot (the site uses 1.3).
RADIUSscript.js18Corner radius of the closed strip, in px (the site uses 18).
SHRINKscript.js0.8Scale of the photo inside the strip (the site uses .8).
SLIDEscript.js400Px the two words slide in from (the site uses 400).
CROSSscript.js20How far the words cross on Explore, in % of the width (the site uses 20).
GRAINscript.js0.12How much grain on the photo, from 0 to 0.4.
WAITscript.js2.2Seconds before Explore presses itself.
HOLDscript.js4.5Seconds on the page before going back to the start by itself.

Try them in the Playground

When to use it

For the opening of the site of a neighbourhood, a village, a scattered hotel, an exhibition or a city project: the loader that shows the place and then turns it into the headline.

On phones

In portrait the two words sit above and below a taller slot, and on Explore they move up and down 80 px instead of crossing; the instructions say swipe and pinch, with the two little squares moving apart. Sizes are in min(vw, vh), so everything fits the box.

With reduced motion

No closing, sliding or crossing: the photo appears already in the slot and the words in place, fading in; Explore fades everything out, shows the still instructions and uncovers the page.

Pitfalls

  • A clip-path in percentages does not follow the slot when the window changes: it is measured in pixels and measured again on resize.
  • GSAP's transform would wipe the CSS transition's one: the 1.1 to 1 scale is on the image, the .8 scale on its box.
  • Words that are too wide push the slot out: the size is reduced by JS after measuring the words, once the fonts have arrived (document.fonts.ready).

Libraries

GSAP 3.15.0, Big Shoulders Display (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.

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

Testing

Tested on 23 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