
Film slider
Transitions, Images, Hover
The painted courtyards of Hollin Yard, a made-up walk past six murals: one tall photo at a time and, below, a black pill with Prev, a grey dot and Next. Hover a word and the dot stretches under it, the word turns black and a thin arrow shows; on click the new photo comes in from that side and covers the old one, which only backs off by 30%. Minimal style. From the Prev / Next gallery 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
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>
<!--
"Dot pill 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>Hollin Yard, the painted courtyards</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/roboto-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- The painted courtyards of Hollin Yard, a made-up neighbourhood walk: six murals, one tall photo at a time. Under
the photo a black pill says Prev, a grey dot, Next. Hover a word and the dot stretches into a pill under it, the
word turns black and a thin arrow points that way. On click the new photo slides in from that side and covers the
old one, which only backs off by 30%. Arrow keys and swipes work too. -->
<div class="page">
<header class="bar">
<p class="brand" data-in>Hollin Yard</p>
<p class="bar__right" data-in>The painted courtyards</p>
</header>
<main class="walk">
<div class="info">
<p class="kicker" data-in>A walk of six walls</p>
<h1 class="name" data-name aria-live="polite">The Key Keeper</h1>
<p class="meta"><span class="meta__by" data-by>Inés Varela, 2023</span></p>
<p class="where"><span class="where__in" data-where>Fig Courtyard, east wall</span></p>
<div class="ticks" data-ticks aria-hidden="true"></div>
</div>
<div class="stage">
<div class="frame" data-frame tabindex="0" aria-roledescription="carousel" aria-label="Murals of Hollin Yard, use the arrow keys">
<figure class="slide" data-slide><div class="slide__in"><img src="chiave.webp" alt="A mural of a giant hand holding an old key on the side of a brick building" width="960" height="640" style="--fx: 44%"></div></figure>
<figure class="slide" data-slide><div class="slide__in"><img src="occhiali.webp" alt="A mural of a turquoise face with pink sunglasses painted on bricks" width="960" height="640" style="--fx: 45%"></div></figure>
<figure class="slide" data-slide><div class="slide__in"><img src="barba.webp" alt="A painted head with dark glasses and a patchwork beard on a grey wall" width="960" height="679" style="--fx: 30%"></div></figure>
<figure class="slide" data-slide><div class="slide__in"><img src="vicolo.webp" alt="A narrow street with a tall wall painted in red, purple and gold shapes" width="960" height="640" style="--fx: 60%"></div></figure>
<figure class="slide" data-slide><div class="slide__in"><img src="sottopasso.webp" alt="A long underpass wall painted with colourful letters and blocks" width="1024" height="683" style="--fx: 72%"></div></figure>
<figure class="slide" data-slide><div class="slide__in"><img src="strada.webp" alt="A street corner with painted faces and posters, cyclists going past" width="960" height="640" style="--fx: 40%"></div></figure>
<span class="frame__half frame__half--prev" data-half="-1" aria-hidden="true"></span>
<span class="frame__half frame__half--next" data-half="1" aria-hidden="true"></span>
<div class="pill" data-pill>
<button class="pill__word pill__word--prev" type="button" data-go="-1" aria-label="Previous mural">Prev</button>
<span class="dot" aria-hidden="true">
<span class="dot__blob" data-blob></span>
<span class="dot__core" data-core>
<svg class="dot__arrow" data-arrow="-1" viewBox="0 0 15 10"><path d="M14 5H1.6M5.4 1.2 1.6 5l3.8 3.8"/></svg>
<svg class="dot__arrow" data-arrow="1" viewBox="0 0 15 10"><path d="M1 5h12.4M9.6 1.2 13.4 5 9.6 8.8"/></svg>
</span>
</span>
<button class="pill__word pill__word--next" type="button" data-go="1" aria-label="Next mural">Next</button>
</div>
</div>
</div>
</main>
</div>
<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.
25 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 “Dot pill gallery” from Animorio and fit it into my siteThe six photos sit on top of each other in a frame with aspect-ratio 330 / 435 and overflow hidden; each image fills it with object-fit: cover and its own focus point (--fx). Only the current one and the incoming one are visible.
The black pill holds Prev, a 1.875em dot (30 px at 16 px) and Next, in a mono face. Inside the dot sits an absolute grey shape: hovering a word, GSAP takes it to 330% wide and 120% high, with xPercent -80 for Prev or -20 for Next and yPercent -8, in .5 s on the site's cubic-bezier(.215,.61,.355,1). The words sit above the shape in z-index, so they end up inside it.
The word goes from grey to black in .7 s; in the middle of the dot a black circle grows from .6 to 1 and shows the thin arrow towards that side. On leave the shape goes back to a dot with a light back.out: a one pixel bounce.
The new one starts at xPercent 100 (or -100 for Prev) and lands at 0, the old one goes to -30 (or 30), both in .8 s on cubic-bezier(.645,.045,.355,1), written as an ease function since GSAP does not read cubic-bezier strings. A box-shadow on the moving edge fades out in the last third, and a veil darkens the old one (--shade on its ::after).
Name, painter and courtyard keep each word in its own mask: the old ones leave upwards, the new ones rise with expo.out a beat later. The tick of the wall grows and takes the terracotta with back.out.
Right and left arrow keys, clicks on the two halves of the photo, swipes over 100 px (the site's threshold). After three seconds with nobody around, the pill stretches its dot, presses itself and changes photo, and stops as soon as the mouse moves.
| Name | File | Default | What it changes |
|---|---|---|---|
SWAP | script.js | 0.8 | Seconds the new photo takes to cover the old one (the site uses .8). |
BACK | script.js | 30 | How far the old photo backs off, in % of its width (the site uses 30). |
STRETCH | script.js | 3.3 | How wide the dot gets under a word, times its size (the site uses 3.3). |
BLOB_TIME | script.js | 0.5 | Seconds the dot takes to stretch under a word (the site uses .5). |
SHADE | script.js | 0.45 | How dark the photo being covered gets, from 0 to 1. |
RISE | script.js | 0.7 | Seconds the caption words take to rise. |
SWIPE | script.js | 100 | Px a finger has to travel to change photo (the site uses 100). |
AUTO | script.js | 1.2 | Seconds the tour rests on each photo. |
For the site of an art walk, an exhibition, a neighbourhood, a photography portfolio or a cultural project: a gallery of tall photos where the button itself tells you where you go.
On a phone the photo sits on top and the caption below, name and painter on the left, ticks on the right. The dot stretches for a moment under the word you tap, then goes back to a dot; you can also swipe over 100 px or tap one half of the photo. Frame and pill are measured on width and height together.
No sliding or shadow: the new photo fades in over the old one, the caption fades, the dot changes shape at once without moving and the word changes colour; the tour stays, with the same fades.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Roboto Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.7 KB; the libraries: GSAP 28 KB.
Tested on 23 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.