Skip to content
animorio
IT
All components

Schedule pickup button

Buttons, Hover, PhysicsGSAP, CSS onlyAdvancedCompressed weight: Demo 13 KBGSAP 28 KBFreeDownload the zip

The Schedule pickup button of an invented takeaway, Brace Kitchen, in smoked lacquer with a copper edge in a warm dark room, like a Dribbble shot. Pressed, the pill grows into a small time wheel: the 15 minute slots are flicked with a finger, coast with inertia and click into the band on a spring, and inside it the kitchen’s prep time rolls along with them. Set, the pill closes on Pickup at 19:45, the clock turns into a check and the receipt slides out from under the edge by a hair.

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>
<!--
  "Schedule 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 Schedule pickup button with the time wheel</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" data-stage>
    <!-- the Schedule pickup button of a takeaway kitchen, smoked lacquer with a copper edge in a warm dark room.
         Pressed, the pill grows into a small time wheel: the 15 minute slots roll with inertia and click into the
         band, where the kitchen's prep time rolls with them. Set, the pill closes on Pickup at 19:45 and the
         receipt slides out from under its edge -->
    <div class="pk-wrap" data-wrap>
      <div class="pk" data-pk>
        <span class="pk__spill" data-spill aria-hidden="true"></span>

        <!-- the receipt: hidden under the pill, it slides out by a hair when the slot is set -->
        <div class="pk__slip" data-slip aria-hidden="true">
          <span class="pk__slip-bars"></span>
          <span class="pk__slip-text"><span>Pickup</span> <b data-slip-time>19:45</b> <span data-slip-order>#2817</span></span>
        </div>

        <div class="pk__body" data-body>
          <span class="pk__fill" aria-hidden="true"></span>
          <span class="pk__light-box" aria-hidden="true"><span class="pk__light" data-light></span></span>
          <span class="pk__glow-box" aria-hidden="true"><span class="pk__glow" data-glow></span></span>
          <span class="pk__sweep-box" aria-hidden="true"><span class="pk__sweep" data-sweep></span></span>

          <button class="pk__face" type="button" data-face aria-expanded="false" aria-controls="pk-panel">
            <span class="pk__disc" aria-hidden="true">
              <span class="pk__plate" data-plate></span>
              <svg class="pk__clock" data-clock viewBox="0 0 24 24">
                <circle class="pk__clock-rim" cx="12" cy="12" r="8.2"/>
                <line class="pk__clock-dot" x1="12" y1="4.6" x2="12" y2="5.6"/>
                <line class="pk__clock-dot" x1="19.4" y1="12" x2="18.4" y2="12"/>
                <line class="pk__clock-dot" x1="12" y1="19.4" x2="12" y2="18.4"/>
                <line class="pk__clock-dot" x1="4.6" y1="12" x2="5.6" y2="12"/>
                <line class="pk__hand pk__hand--h" data-hour x1="12" y1="12" x2="12" y2="8"/>
                <line class="pk__hand pk__hand--m" data-min x1="12" y1="12" x2="12" y2="6.4"/>
              </svg>
              <svg class="pk__ok" viewBox="0 0 24 24">
                <path data-ok-check d="M7.4 12.4l3.1 3.1 6.2-6.6" pathLength="1"/>
              </svg>
            </span>
            <span class="pk__words">
              <span class="pk__state" data-state="rest">
                <span class="pk__title">Schedule pickup</span>
                <span class="pk__sub"><span data-brand>Brace Kitchen</span> · 3 items<span class="pk__wide"> · from <span data-first>19:00</span></span></span>
              </span>
              <span class="pk__state" data-state="ok">
                <span class="pk__title">Pickup at <span data-ok-time>19:45</span></span>
                <span class="pk__sub">Kitchen starts <span data-ok-start>19:20</span> · <span data-ok-order>#2817</span></span>
              </span>
            </span>
            <span class="pk__chev" data-chev aria-hidden="true">
              <svg viewBox="0 0 24 24"><path d="M8 10.2l4 4 4-4"/></svg>
            </span>
          </button>

          <div class="pk__panel" id="pk-panel" data-panel>
            <div class="pk__head">
              <span class="pk__head-l">Pickup today</span>
              <span class="pk__head-r" data-head-brand>Brace Kitchen</span>
            </div>
            <div class="pk__wheel" data-wheel tabindex="0" role="spinbutton" aria-label="Pickup time" aria-valuetext="19:15">
              <div class="pk__rows" data-rows aria-hidden="true"></div>
              <div class="pk__band" data-band aria-hidden="true">
                <span class="pk__band-rim"></span>
                <span class="pk__prep">
                  <span class="pk__prep-win"><span class="pk__prep-col" data-prep-col></span></span>
                  <span class="pk__prep-unit">min prep</span>
                </span>
                <svg class="pk__meter" data-meter viewBox="0 0 19 12">
                  <rect x="0" y="8" width="3" height="4" rx="1"/>
                  <rect x="5.3" y="5.6" width="3" height="6.4" rx="1"/>
                  <rect x="10.6" y="3.2" width="3" height="8.8" rx="1"/>
                  <rect x="15.9" y="0.8" width="3" height="11.2" rx="1"/>
                </svg>
              </div>
            </div>
            <button class="pk__set" type="button" data-set aria-label="Set pickup time">
              <span class="pk__set-plate" data-set-plate></span>
              <svg viewBox="0 0 24 24" aria-hidden="true"><path data-set-check d="M7.6 12.3l3 3 5.8-6.2" pathLength="1"/></svg>
            </button>
          </div>

          <span class="pk__edge" aria-hidden="true"></span>
        </div>
      </div>
    </div>

    <!-- the drawn pointer of the loop, only while nobody touches the button -->
    <svg class="pk__cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true">
      <path d="M5 3.2l13.6 7.6-6 1.4-2.9 5.8z"/>
    </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>

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.

39 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 “Schedule 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

In a warm dark room, with an ember light behind, a trace of orange rising from the floor and a very fine grain, a single pill button 60 pixels tall in brushed smoked lacquer: its edge is a copper hairline that catches the light at the top and goes into shadow at the bottom. On the left a dark disc with a small clock, a white hour hand and an amber minute hand; in the middle Schedule pickup and under it Brace Kitchen · 3 items · from 19:00; on the right a chip with a drawn down arrow. With the mouse over it a soft light follows the pointer, the minute hand steps forward on a spring and the arrow drops by two pixels. Pressed, the lacquer sinks by a pixel and comes back; the pill grows upwards and downwards into a rounded panel 184 pixels tall: at the top Pickup today and the name of the place with a hairline under them, and below a wheel of 15 minute slots, from 19:00 to 21:00, turning like a drum and fading towards the top and the bottom. The band in the middle has a copper edge, the time bolder and wider, an amber tick that grows longer, the prep time in amber, 20 min prep, and four little bars that say how busy the kitchen is; on the right the amber disc with the check. Flicked with a finger, the wheel coasts with inertia, slows down and clicks into the band on a spring that overshoots by a pixel; at every slot that passes the prep number rolls along with the times, the bars light up or go dark and the band twitches by a hair. Touching the amber disc, the disc squashes and the check redraws, the band swells and an amber light spreads; the pill closes with a small widening on the sides, the words become Pickup at 19:45 with Kitchen starts 19:20 · #2817 in amber under them, the hands turn to 19:45 and then the clock gives way to an amber disc with a check drawing itself, a reflection crosses the lacquer, and from under the edge the paper receipt with its torn teeth slides out by a hair, a little crooked, reading PICKUP 19:45 #2817. Pressed again, the receipt goes back in and another time can be chosen. Until someone touches it, a drawn pointer goes round by itself.

How it works

A pill that becomes a panel

The button is a single box, .pk__body, with a fixed 30 pixel border-radius and hidden overflow: GSAP only changes its height, from 60 to 184 on a spring, so the pill becomes a rounded rectangle without stretching its corners. The face of the button and the wheel panel sit on top of each other and swap with a fade and a few pixels of rise; the wrap around them always keeps the room of the open panel, so the framing never jumps.

The wheel with inertia and spring

A single number, pos, says which slot is in the middle (halfway too). Dragging, pos follows the finger divided by the row height, with a 35% rubber band past the ends; let go, the speed of the last 90 ms becomes inertia that dies with a per frame friction (FRICTION raised to the elapsed time, so it does not depend on the frame rate). Under 2.2 rows a second a spring a little under critical damping pulls it to the nearest slot: it overshoots by about a pixel and settles. The time step is capped at 1/30 s and the ticker stops when the wheel is still.

The drum and the band

On every frame each row gets translate3d and rotateX from its distance to the band, under a 380 pixel perspective, and a --k variable from 0 to 1: the CSS uses it for the weight (font-weight with calc), the width (Mona Sans font-stretch), the colour (color-mix) and the length of the tick. A mask fades the drum at the top and the bottom.

Prep time rolling with the times

In the band a window 16 pixels tall shows a column with every prep time: the column moves by pos times 16 pixels, so the number rolls exactly with the wheel, even halfway through a click. When the middle slot changes the kitchen bars light up, the band twitches by 0.8 pixels and screen readers hear the time and the prep.

The success and the receipt

On confirm, one timeline: the disc squashes and the check redraws with stroke-dashoffset on pathLength 1, the amber light spreads, the pill closes with expo.out and a small springy scaleX, the hands turn to the chosen time, the amber plate shows under the dark one through a CSS variable, the reflection crosses and the receipt, hidden under the pill, drops by 26 pixels and comes back to 25, one degree crooked. The loop starts from the load event.

Values to change

NameFileDefaultWhat it changes
BRANDscript.jsBrace KitchenThe name of the takeaway, on the small line and at the top of the wheel.
ORDERscript.js2817The order number on the receipt.
FIRSTscript.js19:00The first pickup slot.
SLOTSscript.js9How many slots the wheel has.
STEPscript.js15Minutes between two slots.
PREPscript.js15,20,20,25,25,30,35,30,25The kitchen’s prep minutes for each slot, comma separated.
STARTscript.js1The slot in the band when the wheel opens (0 is the first).
PICKscript.js3The slot the loop flicks to and sets.
FRICTIONscript.js0.94How long a flick coasts: 0.85 short, 0.97 long.
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
HOLDscript.js2.4In the loop, how many seconds it stays on Pickup at before going back.
AUTOscript.jstrueThe button goes round by itself until someone touches it.

Try them in the Playground

When to use it

For the site or app of a restaurant, a pizzeria, a takeaway, a café or a bakery taking orders to collect, or a shop with click and collect: it lets people pick the time in one gesture, shows how long the kitchen takes and confirms the order with the receipt.

On phones

On the phone the button is at most 86% of the screen wide and under 380 pixels the small line keeps only the place and the items; the wheel is dragged and flicked with a finger, a slot can be tapped to bring it to the middle, and the light under the finger turns on at the touch instead of on hover.

With reduced motion

Nothing moves: the pill changes height at once behind a fade, the wheel jumps straight to the chosen slot without inertia or spring, the clock and the check swap with a fade and the receipt appears already in place.

Pitfalls

  • A springy ease on the height of the closing pill went below 60 pixels and the receipt, 52 tall, peeked over the top of the button: closing uses expo.out, the bounce is a separate scaleX, and the receipt is invisible until it comes out.
  • A GSAP tween on the wheel rows wiped the transform the ticker writes on every frame: GSAP only moves the words inside the rows, the wheel only the rows.
  • With the friction multiplied every frame a flick coasted twice as far at 120 Hz: the friction is raised to the elapsed time in sixtieths of a second.
  • In the loop the inertia, which depends on the recording's frames, did not always stop on the same slot: the loop gives the landing slot to the spring, the inertia stays real.
  • On narrow phones the small line ended with an ellipsis halfway through the time: under 380 pixels the opening time is hidden.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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