Skip to content
animorio
IT
All components

Store pickup button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 8.8 KBGSAP 28 KBFreeDownload the zip

The Pick up in store button of an online shop, in satin graphite on a soft warm paper, like a Dribbble shot. Pressed, a green arc runs round the little shop front and the button checks the stores near you one at a time: the nearest is sold out and gets struck through, the next one has it and the distance rolls in the chip. Then the arc closes, the disc turns green, a check draws itself, a reflection crosses the satin and the button says where and when the order will be ready.

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>
<!--
  "Store 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 pick up in store button that finds the store</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 Pick up in store button of an online shop, satin graphite on a soft warm paper. Pressed, an arc runs round
         the little shop front and the button checks the stores near you one by one: the nearest is sold out, the next
         one has it. Then the arc closes, the disc turns green, a check draws itself and the button says where and when
         the order will be ready -->
    <div class="ps" data-wrap>
      <span class="ps__floor" aria-hidden="true"></span>
      <span class="ps__spill" data-spill aria-hidden="true"></span>
      <button class="ps__btn" type="button" data-btn aria-label="Pick up in store">
        <span class="ps__body" data-body>
          <span class="ps__fill" aria-hidden="true"></span>
          <span class="ps__glow" aria-hidden="true"><span class="ps__glow-light" data-glow></span></span>
          <span class="ps__shine" data-shine aria-hidden="true"></span>
          <span class="ps__sweep" aria-hidden="true"><span class="ps__sweep-band" data-sweep></span></span>
          <span class="ps__satin" aria-hidden="true"></span>
          <span class="ps__row">
            <span class="ps__disc" aria-hidden="true">
              <span class="ps__plate" data-plate></span>
              <span class="ps__plate-done" data-plate-done></span>
              <svg class="ps__ring" viewBox="0 0 44 44">
                <circle class="ps__ring-track" data-track cx="22" cy="22" r="20.5"/>
                <circle class="ps__ring-arc" data-arc cx="22" cy="22" r="20.5" pathLength="1"/>
              </svg>
              <svg class="ps__shop" data-shop viewBox="0 0 24 24">
                <path class="ps__shop-wall" d="M5.6 11.4v7.4h12.8v-7.4"/>
                <g data-door>
                  <path class="ps__shop-door" d="M10.2 18.8v-4.3h3.6v4.3"/>
                </g>
                <path class="ps__shop-window" data-window d="M15.2 13.6h1.4"/>
                <g data-awning>
                  <path class="ps__shop-awning" d="M4.2 7.4L5.6 5h12.8l1.4 2.4"/>
                  <path class="ps__shop-scallop" d="M4.2 7.4v1a1.95 1.95 0 0 0 3.9 0 1.95 1.95 0 0 0 3.9 0 1.95 1.95 0 0 0 3.9 0 1.95 1.95 0 0 0 3.9 0v-1z"/>
                  <path class="ps__shop-stripe" d="M10.1 5.2l-.6 2.2M13.9 5.2l.6 2.2"/>
                </g>
              </svg>
              <svg class="ps__check" viewBox="0 0 24 24"><path data-check pathLength="1" d="M7 12.4l3.3 3.3 6.7-7"/></svg>
            </span>
            <span class="ps__text" aria-hidden="true">
              <span class="ps__state" data-state>
                <span class="ps__title" data-t>Pick up in store</span>
                <span class="ps__sub" data-s>Free · ready in 2 hours</span>
              </span>
              <span class="ps__state" data-state>
                <span class="ps__title ps__title--busy" data-t>Checking stock</span>
                <span class="ps__sub ps__sub--roll">
                  <span class="ps__roll" data-roll>Isola · 0.6 km</span><span class="ps__roll" data-roll></span>
                </span>
              </span>
              <span class="ps__state" data-state>
                <span class="ps__title" data-t>Reserved at Brera</span>
                <span class="ps__sub" data-s>Today, 4 pm · held 3 days</span>
              </span>
            </span>
            <span class="ps__chip" data-chipbox aria-hidden="true">
              <span class="ps__chip-face" data-chip>3 nearby</span>
              <span class="ps__chip-face ps__chip-face--km" data-chip><span class="ps__km" data-km>0.6 km</span><span class="ps__km" data-km></span></span>
            </span>
          </span>
        </span>
      </button>
    </div>
    <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.

26 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 “Store 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 an oat coloured paper, with a soft light from above and a very fine grain, a single pill button 60 pixels tall in satin graphite: its edge is a one pixel line that catches the light at the top and goes into shadow at the bottom, and under the button a layered shadow lifts it off the paper. On the left a dark disc with a little shop front drawn in lines, with a scalloped awning, a door and a small green window; in the middle Pick up in store with Free · ready in 2 hours under it; on the right a chip with 3 nearby. With the mouse over it a soft light follows the pointer, the awning dips on a spring, the door swings ajar, the window stretches, the disc swells a little and the chip steps to the right. Pressed, the satin sinks by a pixel and springs back; a thin track appears round the disc and a green arc starts running, while the words become Checking stock with a band of light passing through them. Below, the store being checked rolls up from beneath: first Isola · 0.6 km, which becomes Isola · sold out, struck through, with a small shake of the head; then Brera · 1.4 km, while the distance in the chip rolls from 0.6 to 1.4 km; then Brera · 2 in stock in green. Then the arc closes into a full ring, the shop front shrinks away, in its place the green disc swells on a spring, the ring widens and fades, a check draws itself, the button swells by a hair, a green light spreads from the disc through the satin, a diagonal reflection crosses it and a green glow appears on the paper under it. The words say Reserved at Brera with Today, 4 pm · held 3 days under it. After a moment everything goes back to rest and the awning drops back in with a springy flap. Until someone touches it, the button goes round by itself.

How it works

Satin in layers

The button is a single box (moved only by GSAP) with absolute layers: the graphite fill with a gradient from the top and a brushing of one pixel lines, the green light anchored to the disc, the light under the pointer driven by two CSS variables through gsap.quickTo, the reflection band and on top the inner shadows: the line of light at the top, the dark lip at the bottom.

The shop front that greets you

The shop front is an SVG in three pieces moved on their own: the scalloped awning scales in height from an svgOrigin at its top on an elastic spring, the door narrows from its hinge as if swinging ajar, the small green window stretches with a back.out.

The arc that searches

A circle with pathLength 1 and stroke-dasharray 0.24 1 runs forever round the disc with rotation and svgOrigin. When the store is found a tween takes the dasharray to 1 1, the arc closes into a full ring, then widens to 1.24 and fades.

The stores that roll

The line under the title and the chip are two pairs of spans in the same grid cell taking turns: the old one goes up and out, the new one arrives from below with a back.out. The sold out store gets a class with line-through and a keyframed shake in x, the right one a green class.

Reserved

The shop front shrinks, the green plate comes back from 0.6 on an elastic spring, the check draws itself with strokeDashoffset, the green light widens in scaleX from the disc, the light band crosses the satin with xPercent and the glow on the paper turns on; after HOLD seconds everything goes back to rest.

Values to change

NameFileDefaultWhat it changes
FIRSTscript.jsIsolaThe nearest store, checked first: sold out.
FIRST_KMscript.js0.6 kmIts distance.
STOREscript.jsBreraThe store that has it.
STORE_KMscript.js1.4 kmIts distance.
LEFTscript.js2How many pieces are left in that store.
READYscript.jsToday, 4 pmWhen the order is ready.
DAYSscript.js3How many days the store holds it.
SCANscript.js0.85Seconds spent on each store while checking.
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
HOLDscript.js2.2How many seconds Reserved stays before going back to rest.
AUTOscript.jstrueThe button goes round by itself until someone touches it.

Try them in the Playground

When to use it

On the product page or in the checkout of an online shop with physical stores: clothing, shoes, books, electronics, furniture. It says at once whether the piece is in a store near you, which one and when to pick it up, instead of a store search page.

On phones

On the phone the button is at most 88% of the screen wide and long words end with an ellipsis; there is no hover, so the light under the finger turns on at the touch and the rest is the same.

With reduced motion

Nothing moves: the arc does not spin but breathes in opacity, the shop front, the green disc and the check swap with a fade, the words and the distances change in place and the green light grows only in strength.

Pitfalls

  • With stroke-linecap round an arc at rest left a green dot at the top of the disc: arc and track stay at opacity 0 until the search starts and go back to 0 before the short dasharray is set again.
  • The shake of the sold out store and the rolling of the line moved the same span with two tweens: the shake starts after the line has arrived and has its own keyframes in x, the rolling uses only yPercent.
  • The loop 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 8.8 KB; the libraries: GSAP 28 KB.

Testing

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