
The inchworm menu
Menus, Hover, Transitions
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.
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>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
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 siteThe 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.
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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
LABEL | script.js | 'Pre-order' | The button's words at rest. |
DONE | script.js | 'Reserved' | The words once the order is in. |
PRICE | script.js | '$249' | The price on the right. |
SHIP_DAYS | script.js | 24 | How many days from today the order ships: the pad runs to that day. |
TEARS | script.js | 8 | How many sheets tear off on the way to the date. |
TEAR_TIME | script.js | 1.6 | Seconds for the sheets to run to the ship date. |
SPRING | script.js | 1.6 | How far the pad and the words overshoot before settling (0 none). |
HOLD | script.js | 2.4 | Seconds Reserved stays before going back to rest. |
AUTO | script.js | true | The button shows itself when nobody touches 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.
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.
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.
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.
Tested on 10 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.