Skip to content
animorio
IT
All components

Breadcrumb menu

Navigation, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

A white card: at the top the Kestrel Drive mark and the crumbs Workspace, Projects, Northline, Brand assets, below the folder title, how many files it holds and three files with thumbnails. Hovering an arrow turns it slightly; clicking turns it 90 degrees down and a glass menu drops under the crumb with the folders of that level, the current one with a tick drawing itself and the others with how many folders they hold, and a light pill following the mouse. Pick another folder and the menu closes, the crumb’s name rolls to the new one and grows or shrinks, the deeper levels leave from the last one and the new ones come in, staggered, and below the title, the file count and the thumbnails change. When the path does not fit, the middle folders gather into «…», which opens the same menu. In the preview a drawn pointer plays the tour by itself.

How it works

A tree of folders

The 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 turns on itself

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.

The glass menu under the crumb

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.

The path that changes

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.

When it does not fit

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.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js0.42Seconds for the glass menu to drop under the arrow.
TURNscript.js90Degrees the arrow turns when its menu is open.
SPRINGscript.js1.6How far the menu and the arrow overshoot before settling (0 = none).
ROLL_TIMEscript.js0.5Seconds for a folder name to roll to the new one.
STAGGERscript.js0.06Seconds between one level and the next when the path changes.
PRESSscript.js0.95Scale of a crumb while pressed.
LIGHTscript.js0.9Strength of the soft light following the pointer (0 = off).
AUTO_PAUSEscript.js6Seconds of quiet before the demo plays by itself again.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The arrow turns inside its svg: svgOrigin with the real centre of the viewBox (8 8) on a g, never on the whole svg, or it swings around.
  • The tick draws with strokeDashoffset: it needs the block switching autoRound off, or it pops in at once.
  • There is one menu, placed on every opening: recompute it on resize and keep it inside the card, or on a phone it goes off the side.
  • The tour clicks are programmatic: only real gestures (isTrusted) stop the tour, or it would stop itself.

Libraries

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.

Testing

Tested on 27 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components