
The inchworm menu
Menus, Hover, Transitions
The breadcrumbs of Kestrel Drive, a made-up file drive: Workspace, Projects, Northline, Brand assets. Every arrow between two folders is a door: it turns down on a spring and a small glass menu drops under the crumb with the sibling folders of the next level, the current one ticked. Pick another and its name rolls into place, the deeper levels leave and the new ones come in one after the other, and below the folder title and the files change. On white, one blue accent.
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>
<!--
"Breadcrumb menu" 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>Breadcrumb menu</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- The breadcrumbs of Kestrel Drive, a made-up file drive. Every arrow between two folders is a door: it turns
down and a small glass menu drops with the sibling folders of the next level, the current one ticked. Pick
another one and its name rolls in place, while the deeper levels leave and the new ones come in, staggered. -->
<section class="card" data-card aria-label="Kestrel Drive">
<span class="card__light" data-light aria-hidden="true"></span>
<div class="bar">
<span class="bar__app" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M4 16.5 12 5l8 11.5" /><path d="M8.4 16.5h7.2" /></svg>
</span>
<nav class="crumbs" aria-label="Breadcrumb" data-crumbs>
<ol class="crumbs__list" data-list></ol>
</nav>
</div>
<header class="head">
<h1 class="head__title"><span class="roll" data-title><span class="roll__line">Brand assets</span></span></h1>
<p class="head__meta"><span class="roll" data-meta><span class="roll__line">12 files</span></span><span class="head__dot" aria-hidden="true"></span><span>Kestrel Drive</span></p>
</header>
<ul class="files" data-files aria-label="Files"></ul>
<div class="menu" data-menu role="menu" hidden>
<span class="menu__glow" data-glow aria-hidden="true"></span>
<p class="menu__head" data-menu-head>Projects</p>
<ul class="menu__list" data-menu-list></ul>
</div>
<svg class="pointer" data-pointer viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 18.6 13l-6.1 1.1 3.6 6.4-2.6 1.4-3.6-6.4-4.5 4.3z" /></svg>
</section>
</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.
22 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 “Breadcrumb menu” from Animorio and fit it into my siteThe drive is an object of folders and their folders; the path is a list of nodes from the root down. The arrow after a crumb opens the folders inside that crumb, the siblings of the next level.
The arrow is a path drawn around the 8,8 centre of its viewBox, inside a g: GSAP turns it with svgOrigin "8 8", 90 degrees on a spring when the menu is open and a few degrees on hover.
One menu for every arrow, placed under the crumb and kept inside the card; it drops from y −8 and scale 0.96 with back.out, its origin under the arrow, and the items arrive staggered. A light pill follows the item under the mouse or the keys.
Picking a folder, the new path keeps the same depth by going into the first folder inside; the crumb that changes rolls its name and animates its width, the deeper ones leave from the last and the new ones come in staggered from the right.
After every change the row is measured: while it is wider than the bar, crumbs from the second on are hidden, never the first nor the last, and «…» appears, opening a menu with the hidden folders.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN_TIME | script.js | 0.42 | Seconds for the glass menu to drop under the arrow. |
TURN | script.js | 90 | Degrees the arrow turns when its menu is open. |
SPRING | script.js | 1.6 | How far the menu and the arrow overshoot before settling (0 = none). |
ROLL_TIME | script.js | 0.5 | Seconds for a folder name to roll to the new one. |
STAGGER | script.js | 0.06 | Seconds between one level and the next when the path changes. |
PRESS | script.js | 0.95 | Scale of a crumb while pressed. |
LIGHT | script.js | 0.9 | Strength of the soft light following the pointer (0 = off). |
AUTO_PAUSE | script.js | 6 | Seconds of quiet before the demo plays by itself again. |
In the top bar of a file drive, a back office, a documentation site or an admin panel with nested folders: wherever you want to jump to a nearby folder without going back up a level.
Everything is in em and the size depends on both the width and the height of the window. On a phone the middle folders gather into «…», the menu stays inside the card and a tap works like a click.
No springs or rolls: the arrow turns without animating, the menu fades in, names and files cross-fade and the new crumbs arrive without moving.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Geist Mono (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.
Tested on 27 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.