Backup status icon
SVG, Hover, Transitions
A hover animation on a real product piece: the four features of Yardline's yard logistics system in a row of tall narrow cards, on a deep petrol page. Hovering a closed card opens a rounded notch in its right edge, like the edge of a loading dock, that follows the pointer up and down with a damped lag and holds a lime light. On click the card widens, its contents rise from below one line after the other, the numbers roll, its piece of interface comes alive and the row scrolls to centre it.
Rebuilt from scratch studying terminal-industries.com by Rejouice, Propagande: 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>
<!--
"Notched feature cards" 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>The yard feature cards that expand with a notch</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.3.0/index.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- faint yard lanes behind everything, 1px lines with rounded corners -->
<svg class="lanes" viewBox="0 0 1200 800" preserveAspectRatio="xMidYMid slice" aria-hidden="true">
<path d="M-20 170H520q40 0 40 40v160q0 40 40 40H1220"/>
<path d="M-20 650H300q40 0 40-40V520q0-40 40-40H1220"/>
<path d="M860-20V250q0 40 40 40h320"/>
</svg>
<span class="grain" aria-hidden="true"></span>
<section class="yos" data-yos aria-label="Yardline Yard Operating System">
<header class="yos__head">
<div class="yos__words">
<p class="yos__eyebrow">Yardline YOS</p>
<h1 class="yos__title">One system, gate to dock.</h1>
</div>
<div class="yos__nav">
<button class="nav-btn" type="button" data-prev aria-label="Previous module">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5"/></svg>
</button>
<button class="nav-btn" type="button" data-next aria-label="Next module">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5"/></svg>
</button>
</div>
</header>
<div class="track" data-track>
<i class="probe probe--c" data-probe-c aria-hidden="true"></i>
<i class="probe probe--e" data-probe-e aria-hidden="true"></i>
<!-- ============================================================ gate check-in -->
<article class="card" data-card data-tone="lime" role="button" tabindex="0" aria-label="Gate check-in">
<span class="card__mark" data-mark aria-hidden="true"></span>
<div class="card__surface" data-surface>
<span class="card__light" aria-hidden="true"></span>
<div class="face face--c">
<p class="face__label">At the<br>gate</p>
<p class="face__title">Gate check-in</p>
<p class="face__foot"><span class="face__stat">38s</span>
<svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
</div>
<div class="face face--e" aria-hidden="true">
<div class="rise top"><span class="mono">At the gate</span><span class="live">Live</span></div>
<h2 class="rise e-title">Gate check-in</h2>
<p class="rise e-desc">The gate camera reads every plate and seal, and the truck is cleared before the driver rolls down the window.</p>
<div class="rise panel">
<ul class="arrivals" data-arrivals>
<li><span class="mono">TRL 4821</span><span class="car">Northbay</span><span class="mono t">06:42</span><span class="chip ok"><svg viewBox="0 0 12 12"><path d="M2.6 6.3 5 8.6l4.4-5"/></svg>Cleared</span></li>
<li><span class="mono">TRL 3307</span><span class="car">Fernway</span><span class="mono t">06:44</span><span class="chip ok"><svg viewBox="0 0 12 12"><path d="M2.6 6.3 5 8.6l4.4-5"/></svg>Cleared</span></li>
<li class="is-now"><span class="mono">TRL 5190</span><span class="car">Corran</span><span class="mono t">06:45</span><span class="chip swap" data-scan><span class="chip__a">Scanning</span><span class="chip__b"><svg viewBox="0 0 12 12"><path data-scan-check pathLength="1" d="M2.6 6.3 5 8.6l4.4-5"/></svg>Cleared</span></span></li>
<li><span class="mono">TRL 2264</span><span class="car">Halvik</span><span class="mono t">06:47</span><span class="chip wait">Queued</span></li>
</ul>
</div>
<div class="rise kpis">
<p class="kpi"><span class="kpi__n"><span data-roll="38"></span><small>s</small></span><span class="kpi__l">Avg. check-in</span></p>
<p class="kpi kpi--2"><span class="kpi__n"><span data-roll="126"></span></span><span class="kpi__l">Trucks today</span></p>
<span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
</div>
</div>
<svg class="rim" data-rim aria-hidden="true"><path/></svg>
</div>
</article>
<!-- ============================================================ yard map -->
<article class="card" data-card data-tone="paper" role="button" tabindex="0" aria-label="Yard map">
<span class="card__mark" data-mark aria-hidden="true"></span>
<div class="card__surface" data-surface>
<span class="card__light" aria-hidden="true"></span>
<div class="face face--c">
<p class="face__label">In the<br>yard</p>
<p class="face__title">Yard map</p>
<p class="face__foot"><span class="face__stat">81%</span>
<svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
</div>
<div class="face face--e" aria-hidden="true">
<div class="rise top"><span class="mono">In the yard</span><span class="live">Live</span></div>
<h2 class="rise e-title">Yard map</h2>
<p class="rise e-desc">Every slot, every trailer, updated as they move. New arrivals get a slot and a route the moment they clear.</p>
<div class="rise panel panel--map">
<svg class="map" viewBox="0 0 240 124" data-map>
<g class="map__lanes" data-slots></g>
<path class="map__route" data-route pathLength="1" d="M2 60.5H118q8 0 8 8v1.5"/>
<rect class="map__pin" data-pin x="-5" y="-3" width="10" height="6" rx="2"/>
<g class="map__tag" data-tag><rect x="-15" y="-9" width="30" height="13" rx="4"/><text x="0" y="0.6">C-07</text></g>
</svg>
</div>
<div class="rise kpis">
<p class="kpi"><span class="kpi__n"><span data-roll="212"></span><small>/260</small></span><span class="kpi__l">Slots in use</span></p>
<p class="kpi kpi--2"><span class="kpi__n"><span data-roll="81"></span><small>%</small></span><span class="kpi__l">Capacity</span></p>
<span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
</div>
</div>
<svg class="rim" data-rim aria-hidden="true"><path/></svg>
</div>
</article>
<!-- ============================================================ dock scheduling -->
<article class="card" data-card data-tone="deep" role="button" tabindex="0" aria-label="Dock scheduling">
<span class="card__mark" data-mark aria-hidden="true"></span>
<div class="card__surface" data-surface>
<span class="card__light" aria-hidden="true"></span>
<div class="face face--c">
<p class="face__label">At the<br>dock</p>
<p class="face__title">Dock scheduling</p>
<p class="face__foot"><span class="face__stat">96%</span>
<svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
</div>
<div class="face face--e" aria-hidden="true">
<div class="rise top"><span class="mono">At the dock</span><span class="live">Live</span></div>
<h2 class="rise e-title">Dock scheduling</h2>
<p class="rise e-desc">Appointments move by themselves when a truck runs late, so no door waits and no driver idles.</p>
<div class="rise panel panel--dock">
<div class="dock" data-dock>
<div class="dock__axis"><span>06</span><span>08</span><span>10</span><span>12</span></div>
<div class="dock__row"><span class="mono">D11</span><span class="dock__lane"><i style="left:4%;width:22%"></i><i style="left:34%;width:18%"></i><i style="left:66%;width:26%"></i></span></div>
<div class="dock__row"><span class="mono">D12</span><span class="dock__lane"><i style="left:12%;width:28%"></i><i style="left:52%;width:16%"></i></span></div>
<div class="dock__row is-hot"><span class="mono">D14</span><span class="dock__lane"><i style="left:2%;width:14%"></i><i class="hot" style="left:36%;width:30%"><b><span>TRL </span>7730</b></i><i style="left:74%;width:18%"></i></span></div>
<div class="dock__row"><span class="mono">D15</span><span class="dock__lane"><i style="left:20%;width:20%"></i><i style="left:58%;width:30%"></i></span></div>
<span class="dock__now" data-now><span class="mono">08:46</span></span>
</div>
</div>
<div class="rise kpis">
<p class="kpi"><span class="kpi__n"><span data-roll="14"></span></span><span class="kpi__l">Doors live</span></p>
<p class="kpi kpi--2"><span class="kpi__n"><span data-roll="96"></span><small>%</small></span><span class="kpi__l">On time</span></p>
<span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
</div>
</div>
<svg class="rim" data-rim aria-hidden="true"><path/></svg>
</div>
</article>
<!-- ============================================================ trailer tracking -->
<article class="card" data-card data-tone="stone" role="button" tabindex="0" aria-label="Trailer tracking">
<span class="card__mark" data-mark aria-hidden="true"></span>
<div class="card__surface" data-surface>
<span class="card__light" aria-hidden="true"></span>
<div class="face face--c">
<p class="face__label">Across<br>operations</p>
<p class="face__title">Trailer tracking</p>
<p class="face__foot"><span class="face__stat">418</span>
<svg class="face__plus" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 3v10M3 8h10"/></svg></p>
</div>
<div class="face face--e" aria-hidden="true">
<div class="rise top"><span class="mono">Across operations</span><span class="live">Live</span></div>
<h2 class="rise e-title">Trailer tracking</h2>
<p class="rise e-desc">One timeline per trailer, from the gate camera to the dock door, with the dwell time counting on its own.</p>
<div class="rise panel panel--track">
<div class="trl">
<div class="trl__head">
<p><span class="mono trl__id">TRL 7730</span><span class="trl__sub">Reefer, 53 ft</span></p>
<span class="chip swap" data-status><span class="chip__a">In the yard</span><span class="chip__b"><svg viewBox="0 0 12 12"><path data-status-check pathLength="1" d="M2.6 6.3 5 8.6l4.4-5"/></svg>Door 14</span></span>
</div>
<div class="trl__line"><span class="trl__fill" data-fill></span>
<span class="trl__stop" data-stop style="left:0%"><b>Gate</b><em class="mono">06:42</em></span>
<span class="trl__stop" data-stop style="left:46%"><b>Yard</b><em class="mono">06:51</em></span>
<span class="trl__stop" data-stop style="left:100%"><b>Dock</b><em class="mono">08:30</em></span>
</div>
</div>
</div>
<div class="rise kpis">
<p class="kpi"><span class="kpi__n"><span data-roll="2:14"></span><small>h</small></span><span class="kpi__l">Dwell</span></p>
<p class="kpi kpi--2"><span class="kpi__n"><span data-roll="418"></span></span><span class="kpi__l">Trailers tracked</span></p>
<span class="go" aria-hidden="true">Open<svg viewBox="0 0 16 16"><path d="M3 8h9M8.5 4.2 12.3 8l-3.8 3.8"/></svg></span>
</div>
</div>
<svg class="rim" data-rim aria-hidden="true"><path/></svg>
</div>
</article>
</div>
</section>
<svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5.2 3.2 18.6 13l-6.1.9 3.6 6.6-2.6 1.3-3.5-6.7-4.6 4.2z"/></svg>
<p class="sr" aria-live="polite" data-live></p>
</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.
112 values to change
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 “Notched feature cards” from Animorio and fit it into my siteThe card is a list of points: the four corners and, when the notch is open, the four of the notch on the right edge (a trapezoid whose sides slant NOTCH_SLOPE times the depth). Every corner is rounded with a true arc: from the vertex you step back and forward r/tan(θ/2) along both sides, never more than half a side, and draw the arc with its sweep. The path becomes the clip-path of the card's body.
On entering, the depth goes from 0 to NOTCH_DEPTH pixels with a half second power2.out tween. The wanted position is the pointer's Y on the card, kept within NOTCH_SIZE/2 + NOTCH_MARGIN; the real one chases it every frame with exponential damping, pos += (goal − pos)·(1 − e^(−FOLLOW·dt)), which does not depend on the screen's refresh rate.
An SVG inside the clipped card draws the same path with a 2 pixel stroke and a gradient: half of the stroke falls outside the clip, so a one pixel line remains that follows the notch too, lighter at the top. The shadow is a drop-shadow on the wrapper, which takes the clipped shape.
The card's width goes from --cw to --ew with a 0.6 s transition in cubic-bezier(.19,1,.22,1); the path is rebuilt every frame with the new size. The open contents already have their final width, so nothing wraps while the card widens: the lines rise 30 pixels with expo.out in 0.9 s, 0.12 s apart, after 0.15 s. Meanwhile the row scrolls to centre the card, working out the final sizes from two hidden probes.
Every digit is a column from zero to nine, ten lines tall, inside a one line window: to show digit d the column rises 10·d per cent, with expo.out and a duration that grows a little for each column, so the digits stop one after the other.
| Name | File | Default | What it changes |
|---|---|---|---|
NOTCH_DEPTH | script.js | 20 | How deep the notch cuts into the card, in pixels. |
NOTCH_SIZE | script.js | 0.3 | How tall the notch is, as a share of the card's height. |
NOTCH_MARGIN | script.js | 0.12 | How close to the corners the notch may go. |
NOTCH_RADIUS | script.js | 20 | How round the notch's corners are. |
NOTCH_SLOPE | script.js | 0.7 | How slanted the notch's sides are: 0 is a square cut. |
FOLLOW | script.js | 6 | How fast the notch follows the pointer. |
OPEN_TIME | script.js | 0.6 | Seconds the card takes to widen. |
RISE | script.js | 30 | How far from below the contents rise, in pixels. |
STAGGER | script.js | 0.12 | Seconds between one line of the contents and the next. |
HOLD | script.js | 2.4 | Seconds each card stays open in the walk on its own. |
IDLE | script.js | 5 | Seconds without touching before the drawn pointer comes back. |
AUTO | script.js | true | The drawn pointer opens the cards by itself. |
For the features section of a SaaS or a logistics app, for the modules of a platform, for an agency's services: when each item has a small piece of interface to show and you want them all in one row, one open and the others ready.
The same animation with adapted sizes: the closed cards are 84 pixels wide, the open one about 230, the height follows the screen's and the row scrolls sideways inside the box; the notch follows the resting finger, a tap opens the card. The open card keeps its title, its piece of interface and one figure.
No moving notch and no widening cards: changing card the row fades out and comes back with the new one already open, the contents fade in, the numbers and the map are already in place and the badges change with a fade.
GSAP 3.15.0, Geist (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 14 KB; the libraries: GSAP 28 KB.
Tested on 3 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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
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.