← Experiments

Toggle Micro

Five toggle switches. Five distinct physics-based microanimations. Click each one — watch lava flow, blobs merge, boulders orbit.

OFF
click to ignite
01

Lava

Molten rock physics via SVG turbulence displacement. The feTurbulence filter animates its seed, creating organic distortion across the gradient as it shifts from cold to molten on toggle.

SVG Filter feTurbulence Displacement Map CSS Gradient
OFF
click to flip
02

3D Flip

The knob rotates 360° on its Y axis with preserve-3d, revealing a back face mid-flip. A motion blur trail appears during the rotation. The track has vanishing-point depth lines for added spatial context.

CSS 3D Transform preserve-3d Backface Motion Blur
OFF
click to merge
03

Metaball

SVG goo filter — feGaussianBlur followed by feColorMatrix threshold — creates organic blob merging. As the knob slides toward the anchor blob, surface tension pulls them together into a single liquid form.

SVG Goo Filter feGaussianBlur feColorMatrix Metaball
OFF
click to escape
04

Black Hole

The boulder doesn't slide — it orbits. A JS rAF loop drives a parametric arc where Y offset follows Math.sin(t·π), simulating a gravitational slingshot. Stars twinkle behind the accretion disk glow.

Canvas 2D rAF Loop Parametric Arc Orbital Physics
OFF
click to transform
05

Morph

Both track and knob shape-shift simultaneously. The track's border-radius transitions from pill to rounded rectangle while the knob morphs from circle to rounded square, each with a spring-bounce easing. Geometric particles scatter on toggle.

border-radius CSS Transition Spring Easing DOM Particles