
The inchworm menu
Menus, Hover, Transitions
The Turn into slides button of a made-up AI docs app, Quire. On the tap a violet and amber light starts running round the pill’s edge, the lines of the doc icon read themselves one after the other and the label rolls from Reading 1,240 words to Outlining 6 sections to Designing slide 1 of 8. Out of the pill’s top edge come five slides, one at a time, in a fan that makes room for each new one: the dark cover, the points, the chart with growing bars, the page with the picture, the big number. At the end the fan squares into a deck with the slide count, the icon turns into the presentation screen and the pill says Open deck.
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>
<!--
"Make slides 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 Make slides button with the doc that deals itself into a deck</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" data-stage>
<!-- the Turn into slides button of a made-up docs app, Quire: press it and the doc is read,
outlined and dealt out of the pill as a fan of slides, which then squares into a deck -->
<div class="fit" data-fit>
<div class="wrap" data-wrap>
<div class="deck" data-deck aria-hidden="true">
<div class="slide" data-slide>
<div class="slide__face slide__face--title">
<span class="s-brand">Quire</span>
<span class="s-h1">Q4 Roadmap</span>
<span class="s-sub"></span>
<span class="s-orb"></span>
</div>
<span class="slide__sheen" data-sheen></span>
</div>
<div class="slide" data-slide>
<div class="slide__face">
<span class="s-h">Where we are</span>
<span class="s-line" style="--w: 86%"></span>
<span class="s-line" style="--w: 72%"></span>
<span class="s-line" style="--w: 80%"></span>
<span class="s-line" style="--w: 54%"></span>
</div>
<span class="slide__sheen" data-sheen></span>
</div>
<div class="slide" data-slide>
<div class="slide__face">
<span class="s-h">Weekly actives</span>
<span class="s-bars">
<span class="s-bar" data-bar style="--h: 38%"></span>
<span class="s-bar" data-bar style="--h: 52%"></span>
<span class="s-bar" data-bar style="--h: 61%"></span>
<span class="s-bar" data-bar style="--h: 74%"></span>
<span class="s-bar s-bar--hi" data-bar style="--h: 96%"></span>
</span>
</div>
<span class="slide__sheen" data-sheen></span>
</div>
<div class="slide" data-slide>
<div class="slide__face slide__face--split">
<span class="s-pic"></span>
<span class="s-col">
<span class="s-h">Launch plan</span>
<span class="s-line" style="--w: 92%"></span>
<span class="s-line" style="--w: 70%"></span>
<span class="s-line" style="--w: 84%"></span>
</span>
</div>
<span class="slide__sheen" data-sheen></span>
</div>
<div class="slide" data-slide>
<div class="slide__face slide__face--stat">
<span class="s-big">+38%</span>
<span class="s-cap">retention since June</span>
</div>
<span class="slide__sheen" data-sheen></span>
</div>
<span class="deck__count" data-badge></span>
</div>
<button class="btn" type="button" data-btn data-autoclic aria-label="Turn the Quire doc into slides">
<span class="btn__glow" aria-hidden="true"></span>
<span class="btn__ring" aria-hidden="true"></span>
<span class="btn__face" aria-hidden="true"><span class="btn__shine"></span></span>
<span class="btn__icon" aria-hidden="true">
<svg class="ico ico--doc" data-ico-doc viewBox="0 0 24 24">
<path class="ico__page" d="M6.2 3.4h7.6l4 4v13.2H6.2Z"></path>
<path class="ico__ear" data-ear d="M13.8 3.4L13.8 7.4L17.8 7.4"></path>
<path class="ico__ln" data-ln d="M8.9 11.2h6.2"></path>
<path class="ico__ln" data-ln d="M8.9 14.1h6.2"></path>
<path class="ico__ln" data-ln d="M8.9 17h3.9"></path>
</svg>
<svg class="ico ico--deck" data-ico-deck viewBox="0 0 24 24">
<rect class="ico__back" x="5.6" y="4.2" width="14.6" height="9.6" rx="2"></rect>
<rect class="ico__front" x="3.4" y="7.4" width="14.6" height="9.6" rx="2"></rect>
<path class="ico__play" d="M9.4 9.7v4.9l4.1-2.45Z"></path>
<path class="ico__stand" d="M10.7 17v3.2M7.6 20.4h6.2"></path>
</svg>
</span>
<span class="btn__label" data-label><span class="btn__txt" data-txt></span></span>
<kbd class="btn__key" data-key aria-hidden="true">S</kbd>
</button>
</div>
</div>
<p class="sr" data-live aria-live="polite"></p>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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.
29 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 “Make slides button” from Animorio and fit it into my siteA violet, white and amber conic-gradient covers the pill, but a mask with content-box and exclude only lets a ring one and a half pixels wide show; a copy blurred by 12 pixels sits underneath as the glow. The start angle is a CSS variable that GSAP’s ticker turns while the pill works, with a speed that eases up and down.
The five slides wait behind the pill, scaled down and lower. Each rises to its place in the fan with back.out (the bounce is the SPRING knob); the place comes from a parabola: linear x, squared y, linear rotation. The slides already out make a small sidestep with elastic.out, as if moving over to make room.
Each state is a new text in a one-line window: it comes in from below while the old one leaves at the top and is removed. The new text’s width is measured first, hidden, and the window reaches it on a spring, so the pill changes size without jumps. The slide number changes on its own, without rolling the whole line.
When the count is done, each slide goes to a deck position, a little smaller and higher the lower it sits, starting from the outer ones. Then the number pops onto the deck, a soft-light sheen crosses the top slide and the doc icon turns, giving way to the presentation one.
| Name | File | Default | What it changes |
|---|---|---|---|
LABEL | script.js | Turn into slides | The label of the resting button. |
DONE_LABEL | script.js | Open deck | The label when the deck is ready. |
SLIDES | script.js | 8 | How many slides come out of the doc: the rising count and the number on the deck. |
WORDS | script.js | 1,240 | The words of the doc it reads. |
SECTIONS | script.js | 6 | The sections of the outline. |
READ | script.js | 1.1 | The seconds it spends reading the doc. |
DESIGN | script.js | 3 | The seconds it spends designing the slides, one after another. |
LAP | script.js | 1.3 | The seconds of one lap of the edge light. |
FAN | script.js | 7 | The degrees between one slide and the next in the fan. |
SPREAD | script.js | 46 | The pixels between one slide and the next in the fan. |
SPRING | script.js | 1 | How much the slides bounce as they land. |
PRESS_SCALE | script.js | 0.965 | How far the pressed button sinks. |
--ambra | style.css | #ffb36b | The warm accent: the icon’s lines, the bars, the deck count and part of the light. |
--viola | style.css | #a596ff | The cool accent: the cover and the other part of the edge light. |
In the editor of an AI docs, notes or writing app, next to the title or in the toolbar: turning a doc into a presentation in one tap, showing clearly what it is doing while it works and what came out.
The fan sits above the pill in under 300 pixels; on a narrower or shorter screen the whole piece scales down together, never past the sides. The finger taps like the mouse; without hover the pointer light stays off.
No springs or flying slides: the label crossfades, the edge light turns slowly, the slides appear already in place in the fan and then in the deck with a fade, the icon changes without turning and on the second tap everything fades away.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.2 KB; the libraries: GSAP 28 KB.
Tested on 15 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.