
The inchworm menu
Menus, Hover, Transitions
The button for moving an appointment: a calendar leaf with the day, the label “Reschedule” and the date. Tap it and three free times slide out from under it one after the other on a spring. Pick one and they go back in, the leaf turns over to the new day, the date rolls and the label becomes “Moved” for a moment. The earlier time goes back among the free ones.
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>
<!--
"Reschedule 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>Reschedule button</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 button that moves an appointment: three free times slide out from under it, the calendar leaf
turns over to the new day and the date rolls -->
<div class="rs" data-rs>
<button class="rs__btn" type="button" data-btn aria-expanded="false" aria-controls="rs-slots">
<span class="rs__leaf" aria-hidden="true"><i><span data-month></span></i><span class="rs__day"><b data-day></b></span></span>
<span class="rs__text">
<span class="rs__label"><span data-label>Reschedule</span></span>
<span class="rs__sub"><span data-sub></span></span>
</span>
<svg class="rs__chev" data-chev viewBox="0 0 16 16" aria-hidden="true"><path d="M4 6.200 8 10.200l4-4"></path></svg>
</button>
<div class="rs__tray" id="rs-slots" data-tray role="group" aria-label="Free times"></div>
<span class="rs__say" data-say aria-live="polite"></span>
</div>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
</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.
10 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Reschedule button” from Animorio and fit it into my siteThe three rows sit in an absolute container under the button: a gsap.fromTo with stagger starts them higher, transparent and smaller, and an elastic settles them.
Only the part with the number rotates on X round its top edge: it goes to -88 degrees, changes the number and comes back from 80 to 0 on the elastic; the perspective is on the leaf.
The current time and the free times are Date objects: on choosing, the old one rejoins the list and the list is sorted again; the words come from toLocaleDateString.
The button has aria-expanded and aria-controls; Esc and a pointerdown outside close it, and after the choice focus returns to the button.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #ff5a4d | The colour of the leaf’s header and of the word “Moved”. |
STAGGER | script.js | 0.05 | How many seconds between one time coming out and the next. |
SPRING | script.js | 1 | How much the times bounce as they come out and the leaf as it turns: 0.3 = a little, 2 = a lot. |
LOOP | script.js | true | Left alone, the demo’s pointer opens the times, picks one and then another. |
On the page of a booking already made: a clinic, a salon, a consultation, a delivery; in the reminder email opened on the site; in a shared calendar.
The same button, 288 pixels wide at most and 64 tall; the times are 40-pixel rows as wide as the button, easy to tap, and they sit below without moving it.
The times appear and disappear without dropping, the leaf’s number and the date change at once and “Moved” appears without rolling. The demo does not move by itself.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 4.9 KB; the libraries: GSAP 28 KB.
Tested on 22 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.
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.