Blinking Dots

A crisp field of dots blinking in and out on a fixed grid

Customize

Density
20
Coverage
0.80
Jitter
0.60
Dot Size
1.00
Size Variation
1.00
Falloff
1.00
Layers
2
Layer Scale
1.90
Layer Fade
0.50
Twinkle
0.40
Twinkle Speed
1.00
Drift Speed
0.012
Drift Angle
90
Vignette
0.00
Brightness
1.00
Opacity
1.00
Cursor Parallax
0.060
Small Dot Color
Large Dot Color
Background

Props

29
widthstring | number

Width of the container.

Default"100%"
heightstring | number

Height of the container.

Default"100%"
classNamestring

Extra classes for the container.

Default-
childrenReactNode

Content stacked above the dot field.

Default-
densitynumber

Cells along the shortest side of the canvas. Cells stay square at any aspect ratio.

Default20
coveragenumber

Fraction of cells that hold a dot.

Default0.8
jitternumber

How far a dot may wander from its cell center.

Default0.6
dotSizenumber

Multiplier applied to every dot radius.

Default1
sizeVariationnumber

Spread between the smallest and largest dot. Also drives the color ramp.

Default1
falloffnumber

Shapes the glow profile, higher values tighten the core.

Default1
layersnumber

Number of parallax depth layers, up to 4.

Default2
layerScalenumber

Cell density multiplier applied per extra layer.

Default1.9
layerFadenumber

Brightness of the furthest layer.

Default0.5
colorFromstring

Color of the smallest dots.

Default"#cc0080"
colorTostring

Color of the largest dots.

Default"#ffccff"
backgroundColorstring

Fill behind the dot field. Accepts "transparent".

Default"#0a0a0a"
twinklenumber

Depth of the brightness flicker.

Default0.4
twinkleSpeednumber

Rate of the brightness flicker.

Default1
driftSpeednumber

Field pan speed in screen widths per second.

Default0.012
driftAnglenumber

Direction of the pan in degrees.

Default90
vignettenumber

Strength of the radial darkening toward the edges.

Default0
brightnessnumber

Overall gain applied to the dots.

Default1
opacitynumber

Master alpha of the canvas.

Default1
cursorInteractionboolean

Let the pointer shift the layers.

Defaulttrue
cursorParallaxnumber

How far the pointer displaces the nearest layer.

Default0.06
adaptiveQualityboolean

Drop resolution when the frame rate falls short.

Defaulttrue
targetFpsnumber

Frame rate the adaptive pass aims for.

Default60
dprnumber

Upper bound on device pixel ratio.

Default2
pausedboolean

Hold the animation still.

Defaultfalse