
The inchworm menu
Menus, Hover, Transitions
The toast of Kubbo, an invented network of parcel lockers, on pure black, like a Dribbble shot. First comes the notice of a second parcel on its way; then Ready for pickup, locker 14, drops on top of it: the older one steps back into the stack, a band of light crosses the card and a thin line at its bottom starts to run out. Tapped, it opens on a real spring: the hidden pickup code, the wall of sixteen doors with 14 lit and two buttons. Show rolls the six digits in one after the other; Open locker spins, unlocks and door 14 swings open on its hinge with the light spilling out, then shuts with a small thud and the notification says Picked up. Dragged sideways it flies away, and the one behind comes forward and leaves when its time runs out.
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>
<!--
"Parcel locker notification" 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 parcel locker notification with the pickup code and the door that opens</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- the notifications of Kubbo, a parcel locker network: the newest on top, the older one tucked behind.
Tapped, the front one opens on the pickup code and the wall of lockers; Open locker unlocks door 14.
Swiped sideways it goes away; left alone, the thin line at the bottom runs out and it leaves by itself -->
<div class="slot" data-slot>
<span class="halo" data-halo aria-hidden="true"></span>
<section class="toast toast--back" data-back aria-label="Parcel on its way">
<span class="toast__face">
<span class="tile tile--road" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M3.5 7.5h10v8h-10zM13.5 10h3.6l2.9 3v2.5h-6.5"/><circle cx="7" cy="16.6" r="1.7"/><circle cx="16.8" cy="16.6" r="1.7"/></svg>
</span>
<span class="head__text">
<span class="head__row"><span class="head__title" data-btitle>On its way to locker 22</span><span class="head__when">2m ago</span></span>
<span class="head__sub" data-bsub>Second parcel · arrives by 17:40</span>
</span>
</span>
<span class="hold" aria-hidden="true"><i data-bhold></i></span>
</section>
<section class="toast" data-card aria-label="Parcel ready for pickup">
<span class="toast__light" aria-hidden="true"></span>
<span class="toast__sheen" data-sheen aria-hidden="true"></span>
<button class="toast__head" type="button" data-head aria-expanded="false" aria-controls="more">
<span class="tile" data-tile aria-hidden="true">
<svg class="tile__locker" data-tlocker viewBox="0 0 24 24">
<rect class="tl__frame" x="3.5" y="3.5" width="17" height="17" rx="3.2"/>
<path class="tl__lines" d="M12 3.5v17M3.5 12h17"/>
<rect class="tl__lit" data-tlit x="13.4" y="13.4" width="5.7" height="5.7" rx="1.3"/>
</svg>
<svg class="tile__check" data-tcheck viewBox="0 0 24 24"><path pathLength="1" d="M6.5 12.4l3.6 3.6 7.4-7.8"/></svg>
</span>
<span class="head__text">
<span class="head__row">
<span class="roll head__title" data-title><span class="r">Ready for pickup</span></span>
<span class="head__when">now</span>
</span>
<span class="head__sub"><span class="roll" data-sub><span class="r">Locker 14 · Kubbo Augusta</span></span></span>
</span>
<svg class="chev" data-chev viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5L8 10l3.5-3.5"/></svg>
</button>
<div class="toast__more" id="more" data-more>
<span class="rule" aria-hidden="true"></span>
<div class="code" data-part>
<div class="code__text">
<span class="code__label">Pickup code</span>
<span class="digits" data-code aria-label="Pickup code hidden"></span>
</div>
<button class="act act--ghost act--small" type="button" data-show>
<span class="act__face">
<svg class="act__icon" data-showicon viewBox="0 0 20 20" aria-hidden="true"><path d="M2.5 10s2.8-5 7.5-5 7.5 5 7.5 5-2.8 5-7.5 5-7.5-5-7.5-5z"/><circle cx="10" cy="10" r="2.3"/></svg>
<span class="roll" data-showw><span class="r">Show</span></span>
</span>
</button>
</div>
<div class="wall" data-part>
<div class="wall__grid" data-grid aria-hidden="true"></div>
<span class="wall__note"><span class="roll" data-note><span class="r">Kubbo Point · 112 Rua Augusta · open 24h</span></span></span>
</div>
<div class="acts" data-part>
<button class="act act--ghost" type="button" data-later><span class="act__face">Later</span></button>
<button class="act act--solid" type="button" data-unlock>
<span class="act__face">
<span class="act__ico" aria-hidden="true">
<svg class="ico__lock" data-ilock viewBox="0 0 20 20"><rect x="4.5" y="9" width="11" height="8" rx="2"/><path data-shackle d="M7 9V6.8a3 3 0 0 1 6 0V9"/></svg>
<svg class="ico__spin" data-ispin viewBox="0 0 20 20"><circle cx="10" cy="10" r="6.5" pathLength="1"/></svg>
<svg class="ico__check" data-icheck viewBox="0 0 20 20"><path pathLength="1" d="M5.2 10.4l3 3 6.6-6.8"/></svg>
</span>
<span class="roll" data-unlockw><span class="r">Open locker</span></span>
</span>
</button>
</div>
</div>
<span class="hold" aria-hidden="true"><i data-hold></i></span>
</section>
</div>
<p class="sr" aria-live="polite" data-say></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.
30 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 “Parcel locker notification” from Animorio and fit it into my siteAt start a small function solves a damped spring in steps of 1/240 of a second (force STIFFNESS, damping DAMPING) until it stops: the curve becomes a GSAP ease and the settling time its duration. Three come out of it: the one for opening, a softer one for widths and a springier one for the words and the buttons.
The two notifications sit in the same place, one over the other. When the new one arrives, the old one goes to y -10, scale 0.93 and opacity 0.55 on the soft spring, so it peeks out at the top like the stacks on phones; when the first one leaves, the second returns to scale 1 and only then does its time line start.
The line at the bottom is a scaleX tween from 1 to 0, HOLD seconds long, with its origin on the left; at the end the notification rises and fades. The tween pauses with the mouse over it and while the card is open, and resumes from where it was; Later starts it over.
Every label that changes is a grid with a single cell: the new one comes in from below on the springy ease losing a blur, the old one leaves at the top and is removed, and the width goes from the old to the new. The code has six equal cells: inside each there is a bar drawn in CSS, and Show rolls the digits in one after the other, 65 thousandths apart.
The doors are made by the script: each has its back, the leaf moved by GSAP and the skin drawn by the CSS (metal, handle, number). Door 14’s leaf turns to -78 degrees in rotationY with transformPerspective 160 and its origin on the left side, on a back.out that takes it a little past; the light at the back is an animated CSS variable. Shutting, a power3.in and a one pixel jolt of the card make the thud.
| Name | File | Default | What it changes |
|---|---|---|---|
LOCKER | script.js | 14 | The number of the locker door, from 1 to 16. |
CODE | script.js | 482917 | The pickup code, six digits. |
PLACE | script.js | Kubbo Augusta | The name of the pickup point. |
HOLD | script.js | 5 | The seconds before an untouched notification leaves by itself. |
DOOR_OPEN | script.js | 2 | The seconds the door stays open before it shuts. |
STIFFNESS | script.js | 250 | The force of the spring that opens and closes: higher is quicker. |
DAMPING | script.js | 24 | The damping: lower, it bounces more before it stops. |
SWIPE | script.js | 0.3 | How far to drag it (share of its width) before it flies away. |
SPEED | script.js | 1 | The speed of the round on its own: 2 twice as fast, 0.5 half. |
AUTO | script.js | true | It goes round by itself until someone touches it. |
For the app or site of an online shop, a courier or a network of lockers and pickup points: saying the parcel has arrived, giving the code and opening the door without leaving the page. It works for any notice with something to do right away: the table ready at the restaurant, the room key, the bike to unlock.
On the phone the notification is 92% of the screen wide, the doors get narrower and a long title ends with an ellipsis; it opens with a tap and goes away with a sideways finger while the page keeps scrolling vertically. Without a mouse the time line does not stop on hover and the light that follows the pointer is not there.
Nothing moves: the notifications appear and leave with a fade, open without the spring, the digits and words change in place with a fade, the open door shows by its light coming on and the leaf going pale. The time line still runs out, because it is the time.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.
Tested on 15 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.