
The colour columns
Hover, SVG
The trailer card of a made-up film, «Saltwater Hours», on a cinema-black page: a film slate drawn in hairlines leans on its corner. On hover the striped stick lifts on its real hinge and snaps shut with a small rebound, the board jolts and its shadow tightens, the take number rolls to the next, the Play button lights up amber and the trailer starts: the time bar runs and the frame drifts slowly. Every click is one more take. Minimal style, a single amber accent.
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>
<!--
"Trailer clapboard" 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>Trailer clapboard</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 trailer card of an invented film, «Saltwater Hours», on a night-black page. A film slate drawn in hairlines
leans on the corner of the card: on hover the stick lifts on its real hinge and snaps shut on a spring, the take
number rolls to the next one, the play button lights up and the trailer starts: the time bar runs and the frame
drifts. Every click is one more take. -->
<main class="stage" data-stage>
<p class="eyebrow" data-in>Now showing <span>Official trailer</span></p>
<div class="scene" data-scene>
<div class="slate" data-slate aria-hidden="true">
<span class="slate__shadow" data-slate-shadow></span>
<svg class="slate__svg" viewBox="0 0 200 168">
<defs>
<pattern id="righe" width="22" height="22" patternUnits="userSpaceOnUse" patternTransform="rotate(-38)">
<rect width="22" height="22" fill="#111113" />
<rect width="11" height="22" fill="#f1ede4" />
</pattern>
<pattern id="righe-stecca" width="22" height="22" patternUnits="userSpaceOnUse" patternTransform="rotate(38)">
<rect width="22" height="22" fill="#111113" />
<rect width="11" height="22" fill="#f1ede4" />
</pattern>
<linearGradient id="lavagna" x1="0" y1="44" x2="0" y2="168" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#1d1d20" />
<stop offset="1" stop-color="#121214" />
</linearGradient>
<linearGradient id="lucido" x1="0" y1="0" x2="200" y2="0" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#fff" stop-opacity="0" />
<stop offset="0.5" stop-color="#fff" stop-opacity="0.22" />
<stop offset="1" stop-color="#fff" stop-opacity="0" />
</linearGradient>
<clipPath id="taglio-take"><rect x="140" y="121" width="52" height="21" /></clipPath>
<clipPath id="taglio-scena"><rect x="76" y="121" width="58" height="21" /></clipPath>
</defs>
<!-- the board -->
<rect class="board" x="2" y="44" width="196" height="122" rx="5" fill="url(#lavagna)" />
<rect class="board__edge" x="2.5" y="44.5" width="195" height="121" rx="5" />
<!-- the fixed band under the stick -->
<rect x="2" y="44" width="196" height="18" fill="url(#righe)" />
<line class="hair" x1="2" y1="62" x2="198" y2="62" />
<!-- the fields, chalk on black -->
<text class="field-label" x="12" y="79">PROD.</text>
<text class="field-value" x="12" y="96">SALTWATER HOURS</text>
<line class="hair hair--soft" x1="10" y1="104" x2="190" y2="104" />
<line class="hair hair--soft" x1="70" y1="104" x2="70" y2="146" />
<line class="hair hair--soft" x1="136" y1="104" x2="136" y2="146" />
<text class="field-label" x="12" y="118">ROLL</text>
<text class="field-num" x="12" y="138">A7</text>
<text class="field-label" x="78" y="118">SCENE</text>
<g clip-path="url(#taglio-scena)">
<g data-scene-roll>
<text class="field-num" x="78" y="138" data-scene-now>12</text>
<text class="field-num" x="78" y="162" data-scene-next>12</text>
</g>
</g>
<text class="field-label" x="142" y="118">TAKE</text>
<g clip-path="url(#taglio-take)">
<g data-take-roll>
<text class="field-num field-num--accent" x="142" y="138" data-take-now>3</text>
<text class="field-num field-num--accent" x="142" y="162" data-take-next>4</text>
</g>
</g>
<line class="hair hair--soft" x1="10" y1="146" x2="190" y2="146" />
<text class="field-label" x="12" y="159">DIR. M. OKAFOR</text>
<text class="field-label" x="128" y="159" data-date>27 . 11</text>
<!-- the stick, drawn around its real hinge at (6, 42) -->
<g data-stick>
<rect x="2" y="24.5" width="196" height="19" rx="2.5" fill="url(#righe-stecca)" />
<rect class="stick__edge" x="2.5" y="25" width="195" height="18" rx="2.5" />
<rect x="2" y="24.5" width="196" height="19" rx="2.5" fill="url(#lucido)" data-stick-shine opacity="0" />
</g>
<!-- the hinge -->
<circle class="hinge" cx="6" cy="42" r="3.2" />
<circle class="hinge__dot" cx="6" cy="42" r="1" />
</svg>
</div>
<button class="card" type="button" data-card aria-label="Play the trailer of Saltwater Hours">
<span class="frame" aria-hidden="true">
<span class="frame__sky" data-sky></span>
<span class="frame__sun" data-sun></span>
<span class="frame__sea" data-sea></span>
<span class="frame__line"></span>
<span class="frame__flash" data-flash></span>
<span class="frame__shine" data-shine></span>
</span>
<span class="bars" aria-hidden="true"><span class="bar bar--top"></span><span class="bar bar--bottom"></span></span>
<span class="play" data-play aria-hidden="true">
<span class="play__ring" data-ring></span>
<svg viewBox="0 0 24 24"><path d="M9 6.8v10.4a.8.8 0 0 0 1.2.7l8.2-5.2a.8.8 0 0 0 0-1.4l-8.2-5.2a.8.8 0 0 0-1.2.7Z" /></svg>
</span>
<span class="hud" aria-hidden="true">
<span class="time" data-time>00:00</span>
<span class="track"><span class="track__fill" data-fill></span><span class="track__head" data-head></span></span>
<span class="time time--end">01:58</span>
</span>
</button>
</div>
<div class="caption" data-in>
<h1 class="title" data-title>Saltwater Hours</h1>
<p class="meta">Drama <span></span> 2h 04m <span></span> In cinemas 4 Dec</p>
</div>
</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.
33 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 “Trailer clapboard” from Animorio and fit it into my siteOne SVG: the board with a gradient, the fixed band and the stick filled with a diagonal stripe pattern, the fields set in mono and in narrow Mona Sans. The stick is drawn around its hinge, the point (6, 42) of the viewBox, and turns with svgOrigin «6 42».
One timeline: the stick opens by LIFT degrees in 0.32 seconds with power3.out and a glint on its edge, waits a tenth and snaps shut in SLAM_TIME seconds with power4.in. On the «clap» label start the rebound (REBOUND degrees, then a quarter), the board’s jolt with elastic.out, the shadow tightening and coming back, the flash on the frame.
The take number sits in a group with two texts one under the other, clipped by a clipPath: the group rises by 24 units in 0.55 seconds, then the new number takes the old one’s place and the group goes back to zero unseen. After take 9 the scene rolls too.
After the clap Play turns amber with a widening ring and a CLIP-second timeline fills the bar (scaleX), moves the playhead, writes the clock and moves the frame: the sky rises, the sun grows, the sea slides and a glint crosses the card. Leaving or at the end everything comes back and the stick opens again by REST_OPEN degrees with back.out.
A GSAP delayedCall checks every half second how long nobody has touched: after AUTO_PILOT seconds the slate claps by itself, so the preview moves even without a mouse.
| Name | File | Default | What it changes |
|---|---|---|---|
LIFT | script.js | 28 | How far the stick opens before the clap, in degrees. |
REST_OPEN | script.js | 10 | How open the stick waits, in degrees. |
SLAM_TIME | script.js | 0.12 | Seconds of the snap shut. |
REBOUND | script.js | 5 | The rebound after the clap, in degrees. |
CLIP | script.js | 6 | Seconds the trailer runs after the clap. |
START_TAKE | script.js | 3 | The take written on the slate at the start. |
AUTO_PILOT | script.js | 2.5 | After how many still seconds the slate claps by itself (0 never). |
On the trailer card of a cinema site, a festival, a production company or a streaming platform; on the «Watch the trailer» button of a film or event page; in a video maker’s portfolio, as the opening of the showreel.
The card is sized on both width and height and the slate stays on its corner, in proportion. A tap claps the slate and starts the trailer; when nobody touches, the slate claps by itself.
The stick stays shut and nothing moves: on hover the take number changes with a fade, Play turns amber and the time bar fills; words and card fade in.
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 7.0 KB; the libraries: GSAP 28 KB.
Tested on 27 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.