Skip to content
animorio
IT
All components

Holographic drop button

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

The Join the drop button of a sneaker shop, black glass with a holographic foil edge, like a Dribbble shot. On the left the tile with the release date, on the right the countdown to the drop ticking second by second, every digit rolling on its own. With the mouse over it the foil colours turn with the pointer and the tile lifts; pressed, a beam of holographic light runs round the edge while the spot is held, then a foil seal with a check rises in place of the date and your place in the line rolls up to 1,284.

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>
<!--
  "Holographic drop 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 join the drop button with the holographic countdown</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 Join the drop button of a sneaker shop, in black glass with a holographic foil edge. On the left the date
         tile of the release, on the right the countdown to the drop, ticking second by second. Pressed, a beam of foil
         light runs round the edge while your spot is reserved; then the tile turns into a foil disc with a check, the
         words say You're on the list and your place in the queue rolls up. -->
    <div class="dr" data-wrap>
      <span class="dr__spill" data-spill aria-hidden="true"></span>
      <button class="dr__btn" type="button" data-btn aria-label="Join the drop">
        <span class="dr__body" data-body>
          <span class="dr__fill" aria-hidden="true"></span>
          <span class="dr__shine" data-shine aria-hidden="true"></span>
          <span class="dr__sweep" aria-hidden="true"><span class="dr__sweep-band" data-sweep></span></span>
          <span class="dr__foil" data-foil aria-hidden="true"></span>
          <span class="dr__beam-glow" data-beam-glow aria-hidden="true"><span class="dr__beam dr__beam--wide"></span></span>
          <span class="dr__beam" data-beam aria-hidden="true"></span>
          <span class="dr__glass" aria-hidden="true"></span>
          <span class="dr__row">
            <span class="dr__tile" data-tile aria-hidden="true">
              <span class="dr__tile-card" data-card>
                <span class="dr__tile-sheen" data-tile-sheen></span>
                <span class="dr__month" data-month>NOV</span>
                <span class="dr__day" data-day>14</span>
              </span>
              <span class="dr__seal" data-seal>
                <svg class="dr__check" viewBox="0 0 24 24"><path data-check pathLength="1" d="M7 12.4l3.3 3.3 6.7-7"/></svg>
              </span>
            </span>
            <span class="dr__text" aria-hidden="true">
              <span class="dr__state" data-state>
                <span class="dr__title" data-t>Join the drop</span>
                <span class="dr__sub" data-s>Aether Runner 2 · 240 pairs</span>
              </span>
              <span class="dr__state" data-state>
                <span class="dr__title dr__title--busy" data-t>Reserving spot</span>
                <span class="dr__sub" data-s>Holding your place in line</span>
              </span>
              <span class="dr__state" data-state>
                <span class="dr__title" data-t>You're on the list</span>
                <span class="dr__sub" data-s><span>Spot </span><span class="dr__spot" data-spot>1,284</span><span data-s-tail> · text at 10:00</span></span>
              </span>
            </span>
            <span class="dr__clock" data-clock aria-hidden="true">
              <span class="dr__label" data-label>Drops in</span>
              <span class="dr__digits" data-digits></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.

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 “Holographic drop 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 near black room, with a cool haze behind and a very fine grain, a single pill button 60 pixels tall in black glass: its edge is a hairline of holographic foil, mint, violet and peach, that catches the light at the top and throws a glow of the same colours on the floor under the button. On the left a dark tile with the release date, NOV on a band of foil and 14 under it; in the middle Join the drop with Aether Runner 2 · 240 pairs under it; on the right a chip with Drops in and the countdown, 02:14:37, ticking every second: the old digit drops out, the new one comes down from above with a pixel of bounce, and when the minutes change two digits roll together. The foil colours drift slowly by themselves. With the mouse over it the edge lights up, its colours turn following the pointer, a soft coloured light follows the pointer in the glass, the tile lifts by two pixels and leans on a spring with a glint crossing it, and the chip moves by a pixel. Pressed, the glass sinks by a pixel and springs back; the edge dims and a beam of holographic light, with a blurred halo, runs round the pill, while the words become Reserving spot with a band of foil passing through them. Then the beam closes its lap and becomes the whole lit edge, the tile drops and disappears, a round foil seal rises on a spring in its place with a dark check drawing itself, the button swells by a hair, a diagonal reflection crosses it, the words say You're on the list and under them your place in the line rolls up to 1,284, · text at 10:00; in the chip Drops in becomes Reminder and the countdown goes on. After a moment everything goes back to rest and the tile comes back with a springy turn. Until someone touches it, the button goes round by itself.

How it works

Glass in layers

The button is a single box (moved only by GSAP) with absolute layers: the black glass fill, the light under the pointer driven by two CSS variables through gsap.quickTo, the reflection band, the foil edge, the loading beam with its halo and on top the glass's inner shadows.

One pixel of foil

The edge is a conic-gradient cut out with a mask: two linear-gradients, one on the content-box, combined with mask-composite: exclude (and -webkit-mask-composite: xor) leave only the pixel of padding. The gradient's angle is the --ha variable, which a GSAP ticker turns slowly and that chases the angle asked for by the pointer: the colours of the edge, the month band, the seal and the glow on the floor turn together.

The beam round the edge

The loading state is a second edge cut out the same way, with a conic-gradient that is almost all transparent and a tail of foil ending in white; GSAP turns --ba from 0 to 360 in BEAM seconds, on repeat. A thicker copy inside a container with filter: blur makes the halo: the filter sits on the parent, because on the same element the mask would cut the blur away too.

The rolling digits

The countdown is six slots of the same width, each with two faces that take turns: every second only the slots with a new digit change, the old one leaves downwards with yPercent and the new one comes from above with a back.out. Time is counted from gsap.ticker.time, started on the load event.

The place in line

When loading ends the beam goes on for another third of a lap and fades as the whole edge lights up; the tile drops, the seal rises on an elastic spring, the check draws itself with strokeDashoffset and an object with n going from SPOT minus 160 to SPOT, with power3.out, rewrites the spot number formatted with toLocaleString.

Values to change

NameFileDefaultWhat it changes
PRODUCTscript.jsAether Runner 2The product of the drop.
PAIRSscript.js240How many pairs are in the drop.
MONTHscript.jsNOVThe month on the date tile.
DAYscript.js14The day on the date tile.
DROP_ATscript.js10:00The time the drop opens, in the line under the words.
COUNTDOWNscript.js8077The seconds left to the drop when the page opens.
SPOTscript.js1284Your place in the line once you join.
RESERVEscript.js1.5How many seconds it takes to hold the spot.
BEAMscript.js1.1The seconds of one lap of the beam round the edge.
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
HOLDscript.js2.2How many seconds You're on the list 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

For the page of a limited release: a sneaker or clothing drop, a limited edition, the presale of an event or a concert, a product launch. It says when it opens, how long is left, holds the place in line and confirms the reminder in the same button.

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 and the foil colours follow the finger at the touch and the rest is the same.

With reduced motion

Nothing moves: the digits change in place with a fade, the foil colours stay still, the beam does not turn but the edge fades on and off, the tile and the seal swap with a fade and the spot number appears already right.

Pitfalls

  • The beam's halo, blurred with a filter on the same element as the mask, disappeared: the filter is applied before the mask, which cuts the blur away. The halo is a thicker copy of the beam inside a container that has the filter.
  • Digits with tabular-nums take Mona Sans's tabular shapes, with a footed one: each digit sits in a slot of the same width and the typeface stays the normal one, so the countdown does not wobble.
  • The countdown and the loop started when the script was read, and the poster landed on different seconds: both start 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 9.3 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