Skip to content
animorio
IT
All components

Tear-off pre-order button

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

The Pre-order button of an online shop, black lacquer on white, with a little tear-off desk calendar set into its left end: an orange binding, two metal rings, today's sheet. Under the mouse the pill lifts, a light follows the pointer and the corner of the sheet curls up. Pressed, the sheets tear off one after another, slow, then fast, then slow again, and fall turning past the edge, while the line below counts the days held; the pad stops on the day the order ships, an orange ring draws itself round the date and Reserved arrives with a tick.

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>
<!--
  "Tear-off pre-order 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 Pre-order button with the tear-off calendar that runs to the ship date</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 Pre-order button of a shop: on its left a little tear-off desk calendar showing today. Pressed, the sheets
         tear off one after another, faster and then slower, until the pad stops on the day the order ships; the day
         gets a ring drawn round it and the button says Reserved -->
    <div class="pre" data-wrap>
      <button class="pre__btn" type="button" data-btn data-autoclic aria-describedby="pre-sub">
        <span class="pre__body" data-body>
          <span class="pre__skin" aria-hidden="true">
            <span class="pre__light" data-light></span>
            <span class="pre__glint" data-glint></span>
          </span>

          <span class="pad" aria-hidden="true" data-pad>
            <span class="pad__depth"></span>
            <span class="pad__sheets" data-sheets>
              <span class="sheet" data-under>
                <span class="sheet__month">Nov</span>
                <span class="sheet__day">11</span>
              </span>
              <span class="sheet sheet--top" data-top>
                <span class="sheet__month">Nov</span>
                <span class="sheet__day">10</span>
                <svg class="sheet__ring" viewBox="0 0 30 24"><path pathLength="1" d="M7.5 5.2C11.6 2.6 21.8 2.4 25 7.6c3 4.9-1.6 11.2-9.4 12.1C8.6 20.5 3.6 17.3 4.3 12.4 4.8 8.9 9.7 5.8 16.2 5.4"/></svg>
                <span class="sheet__curl"></span>
              </span>
            </span>
            <span class="pad__bind"><i></i><i></i></span>
          </span>

          <span class="pre__words">
            <span class="pre__line" data-line>
              <span class="pre__tick"><svg viewBox="0 0 16 16"><path pathLength="1" d="M3.2 8.6l3 2.9 6.6-7"/></svg></span>
              <span class="pre__title" data-title>Pre-order</span>
            </span>
            <span class="pre__sub" id="pre-sub" data-sub>Ships in 24 days</span>
          </span>

          <span class="pre__rule" aria-hidden="true"></span>
          <span class="pre__price" data-price>$249</span>
        </span>
      </button>
      <p class="sr" aria-live="polite" data-live></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.

27 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 “Tear-off pre-order 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

A 60 pixel pill of black lacquer, with an edge catching the light on top and three soft shadows, the price on the right behind a fine rule and a paper desk calendar on the left: an orange binding with two metal rings, the perforation along the top of every sheet, the thickness of the sheets below. The top sheet shows today, and the line under the title says in how many days the order ships. Under the mouse the pill lifts a pixel with an orange glow beneath, a soft light follows the pointer, the title widens on the wdth axis and the corner of the sheet curls up while the sheet bends a little on its corner. Pressed, the pill and the pad give a little; then the sheets tear off: each opens from the right first, turning on its top left corner, and falls turning past the edge of the pill as it fades, and the pad jolts at every tear. The tears are sparse at the start and the end and close together in the middle, like a hand flicking through, and the line below says Holding with the date running; a blade of light crosses the lacquer. On the ship date the sheet settles with a small bounce, an orange ring draws itself round the date, the tick opens before Reserved and the line gives the day and «billed then». After a moment a fresh sheet with today drops onto the pad and the button is back at rest.

How it works

The paper pad

The pad is three layers: the thickness of the sheets below (a gradient with a light and a dark hairline at the bottom), two sheets one on the other (today and tomorrow, so the next day is always underneath) and the orange binding with two metal gradient rings. The perforation is a one pixel repeating-linear-gradient along the top of each sheet; the month is orange capitals, the day Mona Sans narrowed on the wdth axis with tabular figures.

The tear

At every tear the top sheet is copied with cloneNode and the copy goes over everything; the real sheet takes the new day at once and the one below the day after. The copy, with transform-origin on its top left corner, first turns 9-14 degrees in 0.09 seconds (the perforation giving way from the right), then drops 30-44 pixels turning to 26-48 degrees and fades with power2.in; the differences come from a fixed pseudo-random number per sheet, so every run looks the same. The pad jolts a pixel with elastic.out.

The rhythm of a flicking hand

There are TEARS tears in TEAR_TIME seconds, and their moments are power1.inOut over their place in the row: sparse at the start, close in the middle, sparse at the end. Each sheet's day is SHIP_DAYS split into equal steps, counted from the viewer's real date; the line under the title writes it as it runs.

The states

Rest, hover (the pill up a pixel, a light through two quickTo on --lx and --ly, the title widened with fontStretch, the corner curled with scale), keyboard focus with an orange ring standing off the pill, press (scale 0.975 and the pad squashed from below), in progress with aria-busy, done (the hand drawn ring with stroke-dashoffset on pathLength 1, the tick opening in width and then drawing) and return, with today's sheet dropping from above with back.out. The words change by leaving upwards with a touch of blur and coming in from below with back.out.

The pilot

When nobody touches it, the button shows itself: hover, press, the sheets, Reserved and the return, then again. At the first real mouse over the button, a tap or a key it stops. GSAP moves the .pre__body wrapper, never the button, so the CSS focus and GSAP's transform never wipe each other.

Values to change

NameFileDefaultWhat it changes
LABELscript.js'Pre-order'The button's words at rest.
DONEscript.js'Reserved'The words once the order is in.
PRICEscript.js'$249'The price on the right.
SHIP_DAYSscript.js24How many days from today the order ships: the pad runs to that day.
TEARSscript.js8How many sheets tear off on the way to the date.
TEAR_TIMEscript.js1.6Seconds for the sheets to run to the ship date.
SPRINGscript.js1.6How far the pad and the words overshoot before settling (0 none).
HOLDscript.js2.4Seconds Reserved stays before going back to rest.
AUTOscript.jstrueThe button shows itself when nobody touches it.

Try them in the Playground

When to use it

On the page of a product that is not out yet or is made to order: a launch, a small batch, a book at the printer, a limited edition. The pad says without words how long the wait is, and the ring on the day stays as a promise. It also works for any booking with a date, like a pick-up in store.

On phones

The same animation with adapted sizes: the pill is at most the screen width minus 32 pixels and stays 60 high; below 360 pixels the gaps get tighter. A finger presses it just like the mouse; the hover with its curled corner is there only with a mouse.

With reduced motion

Nothing moves or falls: pressed, the sheet fades to the ship date with the ring already drawn, the words change with a fade and the tick is there at once. The return is a fade too.

Pitfalls

  • The torn sheet used to be the real one: while it fell, the one below showed the wrong day and had to be put back afterwards. Now a copy falls and the real sheet takes the new day at once, with the next day underneath.
  • The falling sheets leave below the pill: the layer with the lacquer and the blade of light has overflow hidden, the pill does not, and the pad sits on top with z-index, so the sheets cross the edge and fall onto the white.
  • Writing the middle dot of «billed then» as an escape sequence, the tooling turned it into the real character: it is now String.fromCharCode(183).

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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