forever components

Navigation

Morphing Bottom Nav

A floating mobile bottom nav bar with 4 icon buttons; a glowing magenta-to-gold gradient blob springs beneath the active tab on click.

csslight complexitymoderate 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

Mobile app demos, dark-mode UI showcases, bottom navigation pattern references.

When not to

Desktop-only layouts. Auto-cycles by default — remove the loop before shipping as a real nav component.

Working with an AI agent

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

Change the gradient to gold-to-rose by setting --accent-iris:#C0B459 and --accent-cyan:#ec4899, add a 5th button for Notifications, and slow the spring to 700ms. 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 colors (--accent-iris, --accent-cyan)
  • spring easing/duration (520ms var(--ease-spring))
  • idle hop interval (1500ms)
  • button count and SVG icons
  • blob size (width:52px)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard in loop()
  • visibilitychange stop/start
  • blob translateX positioning via offsetLeft
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Auto-cycles between tabs — must remove loop() call before production use
  • Blob width is hardcoded 52px and must match button width if count changes

navigationbottom-navmobilespringblobgradientui-control

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.