forever components

Navigation

Radial Fan Menu

A 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.

cssmedium 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

Floating action buttons, mobile-style radial nav, speed-dial UIs where compact access to 4-6 actions is needed.

When not to

More than 6 actions (petals overlap), or contexts requiring always-visible navigation — petals are hidden by default.

Working with an AI agent

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

Change the fan arc from -150 to -30 degrees to -200 to -90 so petals open downward-left, and set R=80 to spread them further apart. 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

  • petal count (5 .c04-radial__petal buttons)
  • fan arc angles (start=-150, end=-30)
  • orbit radius (R=66)
  • stagger delay (i*45 ms open, (n-i)*30 ms close)
  • accent colors (--accent-iris, --accent-cyan)
  • idle demo cadence (DEMO_EVERY=3500 ms, OPEN_AT=100 / CLOSE_AT=2100)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard (reduce var stops auto-loop)
  • visibilitychange pause/resume
  • data-x/data-y coordinate pre-computation
  • idle demo clock (setInterval tick; loop controls named run()/halt() — 'start' is the arc-angle var)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Idle demo cycle runs by default (real input takes over, resumes after a few idle seconds) — remove the demo block for purely on-demand interaction
  • Arc is hardcoded upper-left quadrant; repositioning requires changing start/end angles

navigationradialmenuspringfanui-controldark-ui

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.
  • 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.
  • Sliding PillA 3-segment Day/Week/Month toggle where a glowing translucent pill slides between options with a spring bounce on a dark rounded bar.