forever components

Inputs & Switches

Reactive EQ

Seven vertical teal sliders auto-undulate in a sine wave; hovering a band snaps its knob to pointer height. Glowing level-meter dots accent the active fill.

canvasmedium complexitymoderate motionpointer

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

Music/audio UI demos, equalizer visuals, ambient dashboard widgets with a dark techy aesthetic.

When not to

Light backgrounds (hardcoded dark navy). Contexts needing real audio output — this is purely visual.

Working with an AI agent

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

Change BANDS to 10, set the gradient top color to '#a855f7' (purple), and slow the undulation by changing clock*0.03 to clock*0.015. 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

  • band count (BANDS=7)
  • undulation speed (clock*0.03)
  • gradient colors (#0c7a5e / #19e8b0)
  • spring constants (k=0.2, damp=0.6)
  • level-meter dot count (d<10)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard with drawStatic fallback
  • visibilitychange pause
  • pointer coordinate scaling via getBoundingClientRect
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Background color hardcoded in CSS — must edit to change from dark navy
  • No touch drag support — pointermove fires but vertical drag on mobile scrolls the page instead

eqslideraudiocanvastealundulatelevel-meter

More Inputs & Switches components

  • Liquid ToggleSVG toggle with a goo filter — the knob slides with trailing liquid droplets; track color fades between off and on states.
  • Glow SliderSVG range slider with a plum-to-teal gradient fill, glowing knob, and a floating value bubble that tracks the handle; auto-oscillates when idle.
  • Spring StepperMint-themed +/- stepper with a number reel that springs and overshoots between digits 0–9; auto-cycles as a demo. Dark green palette.
  • Segmented ControlSlate-to-sage gradient pill slides between Day/Week/Month/Year segments with elastic spring stretch. Auto-cycles; click pauses briefly.
  • Checkbox MorphThree amber rounded checkboxes auto-cycle and respond to clicks; the box fills and a checkmark strokes in via animated dashoffset.
  • Star RatingFive gold stars auto-sweep ratings up and down; the active star pops with a scale bounce. Pointer sets the hover rating instantly.