forever components

Navigation

Bounce Dock

A frosted dock of five gradient tiles: pressing one bounces it twice and lights a running dot beneath it, pressing it again quits; an idle clock keeps launching and quitting apps on its own, each name appearing as it goes.

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

App launchers, OS-style shells, portfolio navs that want a playful launch acknowledgement and a visible running state.

When not to

Dense toolbars where a 30px hop would collide with content above; navs with more than ~7 items (the bounce reads as noise).

Working with an AI agent

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

Change the item count by adding a <button class="c11-item"> with its own --gN gradient and nth-child rule; lower the hop by editing the -30px in @keyframes c11-bounce; slow the demo by raising DEMO_GAP from 1800. 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

  • item gradients (--g1…--g5)
  • bounce height and timing (@keyframes c11-bounce)
  • demo cadence (DEMO_GAP=1800, the i+=2 hop)
  • tooltip labels (aria-label + .c11-tip text)
  • running dot colour (--dot)
  • dock size (--sz clamp)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • visibilitychange stop/start of the demo clock
  • prefers-reduced-motion guard (no bounce, dots only)
  • lastInput pause so the demo never fights a real press
  • animationend cleanup of .is-bouncing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • The bounce is a CSS animation, so hovering mid-bounce does not lift the tile until it lands
  • Running dots are decorative state — nothing actually launches
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default

dockbouncelaunchnavigationmacosrunning-indicatortooltipfrosted-glass

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.