
Title rising from a line
Transitions, Text, Images
The opening of Slowform Retreat, a made-up three day retreat for people who draw typefaces and interfaces: three photo frames on a staircase and a hairline bar that fills in six seconds. When it is full a train of five colour blocks crosses every frame on its diagonal, from the bottom right corner to the top left, and the last car is the next photo; the captions change under a sliding orange block. Inspired by the Chande Bootcamp 2026 site.
Rebuilt from scratch studying chandebootcamp.com by Lumen Studio, Kaixa: the idea is theirs; code, copy and images are ours. Read how it’s made
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>
<!--
"Shape train 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>Slowform Retreat, the shape train gallery</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@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="style.css">
</head>
<body>
<!-- the opening of Slowform Retreat, a made-up three day retreat for people who draw typefaces and interfaces, in a
made-up valley. Three photo frames stand on a staircase; a hairline bar fills in six seconds and, when it is full,
a train of five colour blocks crosses every frame on its diagonal, from the bottom right corner to the top left,
and the last car of the train is the next photo. The frames change from the lowest to the highest, the captions
change under a sliding colour block, then the bar draws back. Hover a frame to hold the bar, click or press the
right arrow to move on -->
<main class="palco" data-palco>
<header class="testa">
<p class="marca" data-entra>
<svg viewBox="0 0 20 20" aria-hidden="true"><rect x="2.5" y="3" width="15" height="6" rx="3" /><rect x="2.5" y="11" width="9" height="6" rx="3" /></svg>
<span>Slowform Retreat</span>
</p>
<p class="luogo" data-entra><span>Orsa Valley</span><span class="luogo__date">14–16 May</span></p>
</header>
<section class="scala" data-scala aria-label="Moments from the retreat" aria-live="polite">
<figure class="riquadro" data-riquadro>
<div class="riquadro__su" data-su>
<div class="riquadro__foto" data-foto>
<img src="lago.webp" alt="A bench on a wooden dock over a misty lake at sunrise" width="900" height="600" draggable="false">
<span class="riquadro__grana" aria-hidden="true"></span>
</div>
<figcaption class="didascalia" data-didascalia>
<span class="didascalia__testo" data-testo><span class="didascalia__nome">The lake at six</span><span class="didascalia__ora">06:10</span></span>
<span class="didascalia__blocco" aria-hidden="true" data-blocco></span>
</figcaption>
</div>
</figure>
<figure class="riquadro" data-riquadro>
<div class="riquadro__su" data-su>
<div class="riquadro__foto" data-foto>
<img src="caratteri.webp" alt="Wooden letterpress type piled in a tray" width="900" height="600" draggable="false">
<span class="riquadro__grana" aria-hidden="true"></span>
</div>
<figcaption class="didascalia" data-didascalia>
<span class="didascalia__testo" data-testo><span class="didascalia__nome">Type lab</span><span class="didascalia__ora">10:30</span></span>
<span class="didascalia__blocco" aria-hidden="true" data-blocco></span>
</figcaption>
</div>
</figure>
<figure class="riquadro" data-riquadro>
<div class="riquadro__su" data-su>
<div class="riquadro__foto" data-foto>
<img src="argilla.webp" alt="Hands shaping clay on a pottery wheel" width="900" height="600" draggable="false">
<span class="riquadro__grana" aria-hidden="true"></span>
</div>
<figcaption class="didascalia" data-didascalia>
<span class="didascalia__testo" data-testo><span class="didascalia__nome">Clay hour</span><span class="didascalia__ora">16:00</span></span>
<span class="didascalia__blocco" aria-hidden="true" data-blocco></span>
</figcaption>
</div>
</figure>
</section>
<footer class="piede" data-entra>
<p class="giorno" data-didascalia><span class="giorno__testo" data-testo>Day one</span><span class="didascalia__blocco" aria-hidden="true" data-blocco></span></p>
<div class="barra" role="progressbar" aria-label="Time to the next photos" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" data-barra>
<span class="barra__pieno" data-pieno></span>
</div>
<button class="avanti" type="button" aria-label="Next photos" data-avanti>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.2" /><path d="M8.6 4.2 12.4 8l-3.8 3.8" /></svg>
</button>
</footer>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>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.
26 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Shape train gallery” from Animorio and fit it into my siteA frame’s width is one variable, min(26vw, 24vh): so the staircase of three 4:5 frames, two frames tall plus the caption, fits a computer screen, the Playground and the phone box. The second frame drops half a frame, the third a whole one.
A GSAP tween takes the bar from scaleX 0 to 1 in CYCLE milliseconds, linear; at the end the change starts, and when the change is done the bar draws back to the right in RETRACT milliseconds with cubic-bezier(0.76, 0, 0.24, 1) and starts again. With the pointer over a frame the bar tween pauses.
For each frame a canvas lies over the photo. The head of the train runs from −1 to 1 + 0.5 on one power3.inOut curve; car k sits at head − 0.1·k, and the new photo is the last. The duration is CAR_DURATION / TRAIN_SPEED times (1 + tail) / 2: 790 / 0.4 · 1.5 / 2 ≈ 1481 milliseconds. The direction is the frame’s diagonal, from bottom right to top left.
Every car is a rectangle that stays stuck to the far corner and stretches only the near one: so between two layers no gap ever opens at the opposite corners. The new photo is drawn inside the part already open, scaled to cover it, and arrives at scale 1: when the canvas goes, the real photo is identical and nothing jumps.
When the first car covers the frame, an orange block grows from the left in 320 milliseconds, stays 90 while the words change, and leaves on the right in 380, with cubic-bezier(0.86, 0, 0.07, 1). The caption is a grid with minmax(0, 1fr): a longer label never widens the cell.
Photo and canvas share the same light filter (contrast, saturation, a touch of sepia); above them a 128 pixel grain moves twelve times a second, with a light hairline on the edge and three soft shadows; the frame lifts 4 pixels on hover. All the time runs through GSAP, so the preview bench can stop and resume it.
| Name | File | Default | What it changes |
|---|---|---|---|
CYCLE | script.js | 6000 | The milliseconds the bar takes to fill before the change (the site uses 6000). |
STAGGER | script.js | 240 | The milliseconds between one frame and the next, from the lowest to the highest (the site uses 240). |
RETRACT | script.js | 750 | The milliseconds the bar takes to draw back after the change (the site uses 750). |
CAR_DURATION | script.js | 790 | The milliseconds of one car of the train before the speed (the site uses 790). |
TRAIN_SPEED | script.js | 0.4 | The speed of the train: with five cars, 790 / 0.4 gives a crossing of about 1481 milliseconds (the site uses 0.4). |
CAR_GAP | script.js | 0.1 | The gap between two cars, as a share of the path of one car (the site uses 0.1). |
CAPTION_IN | script.js | 320 | The milliseconds the colour block takes to cover a caption (the site uses 320). |
CAPTION_HOLD | script.js | 90 | The milliseconds the block stays while the words change (the site uses 90). |
CAPTION_OUT | script.js | 380 | The milliseconds the block takes to leave on the right (the site uses 380). |
GRAIN | script.js | 0.12 | The strength of the film grain over the photos. |
For the opening of an event, a retreat, a workshop or a school, for the page of a place or a studio: when there are many photos to show without showing them all at once, and the change itself should feel part of the brand.
On a phone the three frames stay on their staircase, smaller: their size is taken from the shorter of width and height, so the whole staircase, with captions, day and bar, fits the box. The train is the same, with its timing; the bar does not hold on touch (a tap moves on), only under a computer pointer.
No train and no entrance: the photos are already in place and every six seconds they pass to the next ones with a 0.6 second fade, the captions and the day with a fade; the bar stays still and the grain does not move.
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 9.1 KB; the libraries: GSAP 28 KB.
Tested on 30 November 2026
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.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.