Skip to content
animorio
IT
All components

Parcel locker notification

Notifications, Hover, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

In the middle, on a pure black page, a graphite card 70 pixels tall comes down from the top: its one pixel edge catches the light at the top, inside there is a very fine grain and under it a barely visible lime glow. It is the notice of a parcel on its way, On its way to locker 22, with the small van in the tile. A moment later the new one arrives on top of it: the old one steps back into the stack, smaller and dimmer, peeking out a few pixels at the top. The new one says Ready for pickup, Locker 14 · Kubbo Augusta and now; in the tile there is a wall of four doors with the bottom right one lit, which blinks twice like a locker light while the tile makes a small jump and a band of light crosses the card. At the bottom a thin lime line starts to run out from right to left: with the mouse over it, it stops. Tapped, the card stretches on a spring with a hair of bounce, the chevron turns and three parts rise one after the other: the pickup code box, with six short bars instead of the digits and the Show button with the eye; the wall of lockers, sixteen metal doors in two rows, settling in a wave that starts from 14, edged in lime with its number and handle lit, and under it the address of the point; and the two buttons Later and Open locker. Show sinks under the finger and the six digits roll in from below one after the other, losing their blur; the label becomes Copy and the next tap copies the code. Open locker sinks, the shackle of the padlock lifts, the padlock gives way to a spinning ring and the label says Unlocking; then the card gives a small click, door 14 swings open on its hinge in perspective, goes a little past and comes back, the lime light spills out of the locker, a band of light crosses the card and the button says Door 14 open with the check drawing itself. Two seconds later the door shuts with a thud that jolts the card by a pixel, the tile turns lime with a check, the title rolls to Picked up and the button to Done. Later folds it again and the notification says when it will remind you, with the time line starting over. Dragged sideways it follows the finger leaning and fading; short of the line it springs back into place, past it (or flicked) it flies away. Then the one behind comes forward, its grey line runs out and it leaves by itself, rising and fading; then it all starts again. Until someone touches it, it goes round by itself.

How it works

A real spring as an ease

At 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.

A stack of two

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.

Time that runs out

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.

Digits and words that roll

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 door on its hinge

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.

Values to change

NameFileDefaultWhat it changes
LOCKERscript.js14The number of the locker door, from 1 to 16.
CODEscript.js482917The pickup code, six digits.
PLACEscript.jsKubbo AugustaThe name of the pickup point.
HOLDscript.js5The seconds before an untouched notification leaves by itself.
DOOR_OPENscript.js2The seconds the door stays open before it shuts.
STIFFNESSscript.js250The force of the spring that opens and closes: higher is quicker.
DAMPINGscript.js24The damping: lower, it bounces more before it stops.
SWIPEscript.js0.3How far to drag it (share of its width) before it flies away.
SPEEDscript.js1The speed of the round on its own: 2 twice as fast, 0.5 half.
AUTOscript.jstrueIt goes round by itself until someone touches it.

Try them in the Playground

When to use 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 phones

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.

With reduced motion

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.

Pitfalls

  • The code cells are grids that stretch by themselves: animating their width like the other labels made them jiggle. They have a fixed width and the rolling function skips the width when the box is a cell.
  • The time line kept running with the card open and the notification vanished while being read: the tween pauses on opening and with the mouse over it, and its end checks that the card is folded.
  • The door leaf had its perspective in the CSS and GSAP wiped it with its own transform: the perspective sits on the parent (perspective) and in transformPerspective on the leaf, and the drawn skin is a child.
  • The round on its own started when the script was read, and the poster landed on different moments: it starts from the page’s load event.

Libraries

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.

Testing

Tested on 15 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components