Vibary.ai
← Vibe Coding

Breadcrumb Trail Append

Going one level deeper slides a new crumb in from the right while the trail behind it recedes.

navigationsubtleminimalinteraction · finite · intermediate · ~0.3s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

324 lines · react + motion only
import { useState } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Breadcrumb Trail Append
 *
 * Drilling one level deeper slides a new crumb in from the right while
 * the trail behind it slides left and recedes. Going back up removes the

About this pattern

Orientation for anything with a hierarchy: folders, categories, settings sections. The crumb that arrives is the one that moved you, so it enters from the direction of travel while the existing trail shifts left and dims — position and opacity together say both where you are and which way you came. The labels are the delicate part: they use layout="position" so the row can reflow around them without stretching a single glyph, and popLayout takes a removed crumb out of flow the moment it starts leaving so the rest close the gap immediately rather than waiting. Past four levels the oldest crumbs fold into one overflow control instead of letting the bar scroll away from the current location.

Folder and file browserCategory drill-downSettings section pathDocumentation hierarchy

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Ridgeline
    Files
    Recent
    Shared
    Starred
    Trash
    FilesNew
    Brand refresh.figPriya Raman · 2.4 MB
    Q3 planning.pdfMarcus Bell · 840 KB
    Supplier contract.docxDana Whitfield · 96 KB
    Photography brief.mdNils Bergström · 12 KB
    Invoice 4821.pdfBilling · 64 KB
    File browser

    The folder path grows and truncates as you move through directories.

Related patterns