
The inchworm menu
Menus, Hover, Transitions
The notification of Lumefold, an invented docs app, like a Dribbble shot on black: «Maya Aldren requested access to Q4 Roadmap», with her note. A two-option switch picks Can view or Can edit, with the pill sliding on a spring and the line below saying what it will mean. Approve gives under the finger, a small arc spins and Maya's avatar leaves the card, flies on an arc into the row of people the document is shared with, the others make room and the count rolls up by one; the card folds into a green check that draws itself. Deny folds it into a red cross and the card leans away. Underneath, the next requests wait stacked and come forward one at a time.
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>
<!--
"Access request notification" 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 document access request with the avatar that joins the collaborators</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>
<!-- a request in Lumefold, an invented docs app: someone asks to open a document. Pick Can view or Can edit,
Approve, and their avatar flies into the row of people the document is shared with; Deny and the card leans
away. The next requests wait stacked under the card -->
<section class="req" data-req aria-label="Access requests">
<div class="req__ghost req__ghost--far" data-ghost aria-hidden="true"><span class="req__ghost-line" data-ghost-line></span></div>
<div class="req__ghost req__ghost--near" data-ghost aria-hidden="true"><span class="req__ghost-line" data-ghost-line></span></div>
<article class="card" data-card>
<span class="card__light" data-light aria-hidden="true"></span>
<header class="card__head">
<span class="card__app" aria-hidden="true">
<svg viewBox="0 0 20 20"><path d="M6 3.5h5.6L15 6.9v9.1a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-11.5a1 1 0 0 1 1-1z"/><path d="M11.4 3.6v3.5H15"/><path class="card__app-line" d="M7.6 10.6h4.8M7.6 13.2h3.2"/></svg>
</span>
<span class="card__from">Lumefold <span class="card__sep">·</span> Access request</span>
<span class="card__time" data-time>now</span>
</header>
<div class="card__body" data-body>
<div class="card__ask" data-ask>
<div class="card__who">
<span class="avatar avatar--big" data-avatar><span data-ini>MA</span></span>
<p class="card__line">
<strong data-name>Maya Aldren</strong> requested access to
<span class="chip" data-chip>
<svg class="chip__icon" viewBox="0 0 16 16" aria-hidden="true" data-chipicon><path d="M4.5 2.5h4.6l2.4 2.4v8.1a.5.5 0 0 1-.5.5h-6.5a.5.5 0 0 1-.5-.5V3a.5.5 0 0 1 .5-.5z"/><path d="M6.2 8.2h3.6M6.2 10.4h2.4"/></svg>
<span data-doc>Q4 Roadmap</span>
</span>
</p>
</div>
<p class="card__note" data-note>“Need it for Thursday’s review.”</p>
<div class="seg" role="radiogroup" aria-label="Permission" data-seg>
<span class="seg__pill" data-pill aria-hidden="true"></span>
<button class="seg__opt" type="button" role="radio" aria-checked="true" data-role="view">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M1.8 8s2.3-4.2 6.2-4.2S14.2 8 14.2 8s-2.3 4.2-6.2 4.2S1.8 8 1.8 8z"/><circle cx="8" cy="8" r="1.9"/></svg>
<span>Can view</span>
</button>
<button class="seg__opt" type="button" role="radio" aria-checked="false" data-role="edit">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10.6 2.9l2.5 2.5-7.4 7.4-3.1.6.6-3.1z"/><path d="M9.3 4.2l2.5 2.5"/></svg>
<span>Can edit</span>
</button>
</div>
<p class="card__hint" aria-hidden="true"><span class="card__hint-in" data-hint>Maya will be able to read and comment.</span></p>
<div class="card__actions">
<button class="btn btn--ghost" type="button" data-deny><span class="btn__face">Deny</span></button>
<button class="btn btn--main" type="button" data-approve>
<span class="btn__face" data-approveface>
<span class="btn__words" data-approvewords>Approve</span>
<svg class="btn__spin" viewBox="0 0 20 20" aria-hidden="true" data-spin><circle cx="10" cy="10" r="7" pathLength="1"/></svg>
</span>
</button>
</div>
</div>
<div class="card__done" data-done aria-hidden="true">
<span class="seal" data-seal>
<svg viewBox="0 0 28 28" aria-hidden="true">
<circle class="seal__ring" data-ring cx="14" cy="14" r="12" pathLength="1"/>
<path class="seal__mark" data-mark pathLength="1" d="M8.6 14.4l3.5 3.5 7.3-7.6"/>
</svg>
</span>
<span class="card__done-text">
<span class="card__done-title" data-donetitle>Maya can now edit</span>
<span class="card__done-line" data-doneline>We let Maya know by email.</span>
</span>
</div>
</div>
<footer class="card__foot">
<span class="card__shared">Shared with</span>
<span class="stack" data-stack aria-hidden="true"></span>
<span class="card__count" aria-live="polite"><span class="card__count-roll" data-countbox><span data-count>4 people</span></span></span>
</footer>
</article>
</section>
<svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2l13.6 8.1-6.1 1.2-3.1 5.6z"/></svg>
<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>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.
40 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 “Access request notification” from Animorio and fit it into my siteOn Approve the avatar and the row are measured with getBoundingClientRect, relative to the card, and a copy of the avatar travels on a quadratic Bézier: the control point sits halfway and ARC pixels above the higher of the two. A number t from 0 to 1 tweened by GSAP on power2.inOut gives the position on every frame, the size goes from 40 to 24 pixels and the avatar leans with sin(πt). The shadow stretches mid-flight and comes back.
A third of the way into the flight the new avatar enters the head of the row unseen: the others slide STEP pixels on a spring and, past SHOWN, shrink and vanish; the row widens with them. On landing the copy disappears, the real avatar appears in its place with a bounce and the count of people rolls up by one.
The switch pill goes to the chosen option with back.out and meanwhile stretches 7% and comes back with elastic.out; the explanation line rolls in the direction of the choice. To fold the card the height of the question and of the result are measured and the height is tweened between them, while the question rises blurred and the seal draws its circle and check (or cross) with stroke-dashoffset and pathLength 1.
The next requests are two narrower, lower cards behind the real one; when a request is closed the card leaves (upwards if approved, sideways and leaning if declined), is filled with the next request and comes back from the position of the first in the stack, while the stack moves forward one place. A drawn pointer plays the round by itself with promises tied to gsap.delayedCall; the first real pointer move, a touch or a key stops it.
| Name | File | Default | What it changes |
|---|---|---|---|
FLY | script.js | 0.9 | Seconds the avatar flies from the card into the row of collaborators. |
ARC | script.js | 54 | Pixels the flight rises above the straight line. |
BOUNCE | script.js | 1.6 | How far the springs go past the mark before settling (0 none). |
STEP | script.js | 20 | Pixels between two avatars in the row. |
SHOWN | script.js | 4 | How many avatars the row shows at most. |
HOLD | script.js | 1.7 | Seconds the green check stays before the next request. |
TILT | script.js | 4 | Degrees a declined card leans as it leaves. |
SPEED | script.js | 1 | 2 = the pointer and the pauses twice as fast, 0.5 = half. |
LOOP | script.js | true | Left alone, the pointer goes through the requests again and again. |
In docs, files, design or project management apps, when someone asks to open something shared: the notification lets you pick the permission and decide in one gesture, and shows right away where the person ended up. It also works for team invites, requests to join a group or a channel, and an admin panel.
The same animation with sizes adapted: the card is 92% of the screen wide and fits the box; the buttons and the switch work with a finger, and the light on the card follows the touch. Under 520 pixels of height the italic note is hidden.
Nothing moves: the pill jumps to the option, the avatar doesn't fly but fades in in the row, the card folds with a fade and the seal arrives already drawn, and the requests swap with a fade. The drawn pointer is hidden; the round goes on with its own timing.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.
Tested on 8 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.