Skip to content
animorio
IT
All components

Curbside pickup button

Buttons, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 7.0 KBGSAP 28 KBFreeDownload the zip

The «I'm here» curbside pickup button of an invented bakery, Crumb & Co., in the style of real product interface pieces, on white: pressed, the black pill springs open onto the three pickup bays, which come in staggered from blurred to sharp. Pick a bay and its tile grows in saffron until it fills the whole pill; a thin ring runs around the paper bag, its handle swinging, while it is brought out to you, and at the end the check draws itself on «Picked up».

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>
<!--
  "Curbside pickup button" 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 I'm here curbside pickup button with the bay to pick</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 curbside pickup of Crumb & Co., an invented bakery: I'm here opens into the three pickup bays, the bay you
         pick fills the pill with saffron, a ring runs around the paper bag while it is brought out, then Picked up -->
    <div class="frame" data-inquadra>
      <div class="pill" data-pill>
        <span class="pill__skin" aria-hidden="true"></span>
        <span class="pill__grain" aria-hidden="true"></span>
        <span class="pill__sheen" data-sheen aria-hidden="true"></span>
        <span class="pill__fill" data-fill aria-hidden="true"></span>

        <button class="pill__go" type="button" data-go aria-expanded="false" aria-controls="bays" aria-describedby="pick-note">
          <span class="layer layer--rest" data-layer="rest">
            <span class="in">
              <svg class="bag" viewBox="0 0 24 24" aria-hidden="true">
                <g class="bag__handle" data-handle><path d="M9 8.2V6.6a3 3 0 0 1 6 0v1.6"/></g>
                <path class="bag__body" d="M5.6 8.2h12.8l-1 11.1a1.3 1.3 0 0 1-1.3 1.2H7.9a1.3 1.3 0 0 1-1.3-1.2Z"/>
                <path class="bag__fold" d="M6.3 11.4h11.4"/>
              </svg>
              <span class="txt">I'm here</span>
            </span>
          </span>
        </button>

        <div class="layer layer--bays" data-layer="bays" id="bays" role="group" aria-label="Pick your bay">
          <span class="in">
            <span class="bays__q" aria-hidden="true">Bay</span>
            <button class="chip" type="button" data-bay="1" aria-label="Bay 1"><span class="chip__bg"></span><span class="chip__n">1</span></button>
            <button class="chip" type="button" data-bay="2" aria-label="Bay 2"><span class="chip__bg"></span><span class="chip__n">2</span></button>
            <button class="chip" type="button" data-bay="3" aria-label="Bay 3"><span class="chip__bg"></span><span class="chip__n">3</span></button>
          </span>
        </div>

        <span class="layer layer--bring" data-layer="bring" aria-hidden="true">
          <span class="in">
            <span class="ring-ico">
              <svg class="ring" viewBox="0 0 32 32"><circle class="ring__track" cx="16" cy="16" r="14"/><circle class="ring__run" data-ring cx="16" cy="16" r="14"/></svg>
              <svg class="bag bag--small" viewBox="0 0 24 24">
                <g class="bag__handle" data-handle2><path d="M9 8.2V6.6a3 3 0 0 1 6 0v1.6"/></g>
                <path class="bag__body" d="M5.6 8.2h12.8l-1 11.1a1.3 1.3 0 0 1-1.3 1.2H7.9a1.3 1.3 0 0 1-1.3-1.2Z"/>
                <path class="bag__fold" d="M6.3 11.4h11.4"/>
              </svg>
            </span>
            <span class="txt"><b data-baynum>Bay 2</b><span class="sep">·</span>Bringing it out</span>
          </span>
        </span>

        <span class="layer layer--done" data-layer="done" aria-hidden="true">
          <span class="in">
            <svg class="check" viewBox="0 0 24 24"><path class="check__ring" d="M12 3.2a8.8 8.8 0 1 1 0 17.6a8.8 8.8 0 1 1 0-17.6"/><path class="check__tick" data-tick d="M7.9 12.3l2.7 2.7 5.6-5.9"/></svg>
            <span class="txt">Picked up<span class="sep">·</span>Enjoy</span>
          </span>
        </span>
      </div>

      <p class="note" id="pick-note" aria-live="polite">
        <span class="note__t" data-n="rest">Crumb &amp; Co. · Order A42 · ready at the curb</span>
        <span class="note__t" data-n="bays">Which bay are you parked in?</span>
        <span class="note__t" data-n="bring">Ines is on her way out · about 1 min</span>
        <span class="note__t" data-n="done">Handed over at 18:42 · 3 items</span>
      </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>

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.

31 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 “Curbside pickup button” 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

On white, a matte black pill with a warm sheen on top, a fine grain and the paper bag drawn in strokes beside «I'm here»; below, in grey, order A42 of the invented bakery Crumb & Co., ready at the curb. On hover a light crosses the pill and the bag's handle swings. Pressed, the pill squashes, springs wider and the three bay tiles come in one after the other, from blurred to sharp; below it reads «Which bay are you parked in?». Tap a bay and the other tiles step back while the chosen one grows in saffron into the whole pill, which closes onto «Bay 2 · Bringing it out»: a thin ring runs around the bag, its handle swinging as if carried by hand. When the ring is full the check draws itself inside a circle, «Picked up · Enjoy», the pill gives a small hop and a light crosses it; then it turns black again, at rest.

How it works

One pill, four layers of labels

The pill has a single width animated by GSAP; inside are four absolutely positioned, centred layers (rest, bays, bringing, done), each with max-content content. Each layer is measured at its real width, with the wdth axis set back to 100 because mid-swap the labels are narrowed, and the pill goes to that size plus its padding.

Bays coming out of the pill

Pressed, the pill widens with back.out and an elastic spring on its scale (BOUNCE), and the three tiles come in STAGGER seconds apart from scale 0.55 and blur(4px) to sharp. The tiles are real buttons: reachable with Tab, Escape closes them.

The tile that becomes the pill

The saffron layer starts with an inset clip-path cut exactly on the chosen tile, measured with getBoundingClientRect relative to the pill (divided by its current scale), and opens to inset(0 round 30px) with expo.inOut while the pill narrows onto the pickup label.

The ring and the check

The ring is a circle with a stroke-dasharray as long as its circumference: stroke-dashoffset goes to zero in BRING seconds and then calls the check, a path drawn the same way. The bag handle swings with a yoyo tween on rotation, pivoting at its base (transform-box: fill-box).

The loop on its own

Until someone touches it, GSAP delayedCalls (never setTimeout) press the pill, pick bay PICK and start over after PAUSE seconds. At the first tap, click or key the loop stops and the pill answers the person only.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#f0b13aThe colour of the chosen bay and of the pill while the bag is brought out.
PICKscript.js2The bay the automatic loop picks.
BRINGscript.js2.8Seconds for the ring to run around the bag.
OPENscript.js0.55Seconds for the pill to open onto the bays.
STAGGERscript.js0.07Seconds between one bay coming in and the next.
BOUNCEscript.js1.6How much the pill, bays and labels bounce.
PAUSEscript.js2.2Seconds the automatic loop holds Picked up and the rest state.
LOOPscript.jstrueThe automatic loop starts over.

Try them in the Playground

When to use it

In the app or site of a restaurant, a bakery, a café or a shop with curbside pickup: the customer arrives, says «I'm here», picks where they parked and sees the order being brought out. It also suits the click and collect of an online shop.

On phones

The same animation with adapted sizes: the pill stays 60 pixels tall and never goes past 94% of the screen; under 380 pixels the tiles narrow and the text drops to 15; widths are measured again on resize. A tap does what a click does and the press shows under the finger too.

With reduced motion

No bounces, squashes, swings or passing lights: labels and bays change with a fade, the saffron tile opens quickly, the ring fills and the check appears already drawn.

Pitfalls

  • The saffron tile's clip-path must be measured divided by the pill's current scale: while it bounces the pill is bigger or smaller and the rectangle started a few pixels off.
  • Mid-swap the labels are narrowed on the wdth axis: measured at that moment the pill closed too far and cut the last letter, so the measure is taken at wdth 100.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 7.0 KB; the libraries: GSAP 28 KB.

Testing

Tested on 9 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