forever components

Navigation

Breadcrumb Trail

SVG chevron separators draw themselves in with a stroke-dashoffset animation; the active gold crumb auto-advances down the trail every 2.6 seconds.

csslight complexitysubtle motionclick

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Navigation demos, onboarding flows, or any UI showing hierarchical page location with a polished dark-mode aesthetic.

When not to

Light-background layouts (background hardcoded dark navy). Production breadcrumbs — remove the auto-cycle loop and wire real navigation links.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Change the accent color from gold to a different hue by setting --accent-cyan to your color of choice (e.g. #6f9b7a for sage), and slow the active-crumb cycle interval from 2600ms to 4000ms. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • accent color (--accent-cyan)
  • cycle interval (2600ms in setTimeout)
  • chevron draw duration (520ms)
  • stagger delay per chevron (k*120ms)
  • number of crumb segments
  • idle demo cadence (TICK=100, FIRST=500, EVERY=1200 ms, resume IDLE_BACK=3600 ms)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (reduce check + CSS @media block)
  • visibilitychange pause/resume
  • idle demo walk (setInterval phase clock; a real click takes over)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Auto-cycles by default — remove the loop() call for production use
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • Button elements lack aria-current on the active crumb — add aria-current='page' for production

breadcrumbnavigationsvgstroke-animationui-controlloopdark-mode

More Navigation components

  • Magnify DockmacOS-style frosted-glass dock of six gradient tiles that scale up and lift toward the cursor; idle auto-sweep keeps it animated when untouched.
  • Hamburger MorphThree-line hamburger button spring-morphs into a glowing teal X on click; button border gains teal glow when open. Auto-cycles as demo.
  • Gooey Tab BarPill-shaped tab bar with a vermillion blob that slides between tabs using a spring easing and SVG goo filter for liquid merge effect on dark surface.
  • Radial Fan MenuA core button rotates to an X and fans five glowing stone-toned icon petals outward in a staggered spring arc; auto-cycles open/close as a demo.
  • Slide-in DrawerHamburger icon morphs to an X while a side panel slides in over a dark scrim, revealing four nav items with staggered fade-in animations.
  • Underline FollowA glowing emerald-to-tan gradient underline slides and resizes to follow hovered nav links; wanders idly across links when unhovered.