∞ forever components

Inputs & Switches

Glow Slider

SVG range slider with a muted plum-to-teal fill, glow and value bubble, driven by a native range input. First input stops demo oscillation; drag and keyboard changes settle fully.

svgmedium complexitymoderate motionpointermobile-ready

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 →
1

When to use it

Settings panels, volume/brightness controls, or any numeric input needing a high-contrast neon aesthetic on dark backgrounds.

When not to

Forms needing immediate visual response with no interpolation; use reduced-motion behavior or set val directly.

Working with an AI agent

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

Adjust gradient tokens, smoothing and range limits together. Read numeric input.value for application changes. Keep native range input, visible focus, sticky demoEnabled and bubble clamp. Theme: dark tokens live in :root; the [data-theme="light"] block and forever:theme message switch palette.

Safe to edit

  • gradient colors (stop-color in #fill linearGradient)
  • oscillation speed (t*0.018)
  • oscillation amplitude (0.42)
  • glow blur radius (feGaussianBlur stdDeviation)
  • knob radius (r=9)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard
  • visibilitychange pause
  • bubble clamp logic (Math.min/Math.max on bx)
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
  • native controls, visible focus and keyboard handlers
  • sticky preview demo lifecycle (forever-preview-lifecycle demo-v1; __foreverPreview.demoEnabled; forever:interactive window event)
  • visibilitychange suspension with manual settling retained
  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • Value range is 0–100; connect the native input event to application data.
  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default.
  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.

sliderglowneonsvgui-controlbubbleloop

More Inputs & Switches components

  • Liquid ToggleSVG liquid toggle with a goo filter, trailing droplets and a native button. First deliberate input stops the idle demo; the chosen on/off state settles fully.
  • Spring StepperMint stepper with native minus/plus buttons and a number reel that settles with spring feedback. First deliberate input stops automatic steps; the chosen…
  • Segmented ControlSlate-to-sage pill slides between four native segment buttons with elastic spring stretch. First input stops automatic cycling; committed selection remains.
  • Checkbox MorphThree native amber checkbox buttons animate their check strokes and expose pressed state. First input stops the demo; checked values remain.
  • Star RatingFive gold SVG star radio controls commit ratings on click or keyboard input and settle with a scale bounce. First input stops automatic sweeping.
  • OTP BoxesFour native numeric OTP inputs support typing, paste, focus advance and Backspace navigation. Initial digits are populated; first input stops scripted entry.