Micro Data-Viz
Bubble Pack Jiggle
14 multicolor gradient bubbles pack toward center with soft collision relaxation and a gentle sine jiggle; click repacks with new random sizes.
canvasmedium complexitymoderate motionclick
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Ambient data-viz backgrounds, proportional category charts, or decorative looping heroes where organic motion suits the brand.
When not to
Contexts needing labeled data — bubbles carry no text. Avoid on low-end devices if many bubbles are stacked (O(N²) collision checks).
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change bubble count to 20 by setting N=20, swap the palette to warm tones (['#ff7043','#ffa726','#ffee58','#ef5350','#ab47bc']), and slow the jiggle by reducing phase increment from dt/600 to dt/1200. 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
- bubble count (N=14)
- color palette (pal array)
- max radius range (8 + rand*rand*40)
- jiggle strength (jig=0.18)
- center-attraction force (0.6 multiplier)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard (reduce disables jiggle)
- visibilitychange pause
- DPR-aware canvas sizing
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- O(N²) collision loop — keep N under ~30 for smooth mobile perf
- Background color hardcoded in CSS (#06121a) — must edit to change from dark navy
- No bubble labels — purely decorative, not suitable for readable data charts
More Micro Data-Viz components
- Bar Grow + ReshuffleSeven rounded gradient bars ease to new random heights every 1.6s with glowing cap dots. Click triggers an immediate reshuffle.
- Live Line SweepA glowing cyan area line chart scrolls a live sine-plus-noise time-series across a faint grid, with a white head dot marking the latest value.
- Donut Ring ProgressOlive-to-terracotta gradient donut ring eases its fill to random targets with a leading dot and large centered percentage readout. Tap to jump to a new value.
- Sparkline Moving DotA green sparkline traces itself across a faint ghost path, led by a haloed white dot; on completion it regenerates a new random 28-point series.
- Radial Gauge NeedleSemicircular gauge on dark amber background with green-yellow-red arc segments; a glowing white needle sweeps smoothly via sine wave with a live 0–100…
- Heatmap Ripple12x6 grid of rounded cells colored via a magma ramp, with a sine-wave ripple emanating from a point that orbits and follows the cursor.