Skip to content
PixiKit

Glint Drift

A deep field of fine glints drifting past the camera, flashing as they catch the light.

pixikit.com/docs/effects/glint-drift

Customize

Preset
Colors2 of 10
Background color
Count1500
Size1.6px
Size variance0.60
Brightness1.00
Spread1.00
Hollow0.06
Perspective0.70
Center x0.50
Center y0.50
Speed0.50
Direction
Twist0.00
Turbulence0.00
Trail0.08
Glitter0.50
Glint size1.00
Twinkle0.50
Focus0.62
Aperture0.45
Boost7.0
Parallax0.50
Waves
Intro
Paused

Props

32
NameTypeDefaultDescription
preset"glimmer" | "warp" | "gold-dust" | "tunnel" | "dream" | "snowfall" | "horizon""glimmer"A complete look; the props it sets follow it until you pass them.
colorsstring[]["#FFFFFF", "#B19EEF"]Two colors the glints are mixed from.
backgroundColorstring"transparent"Color behind the field. On a light color the glints are drawn as ink.
countnumber1500Number of glints, 100 to 6000.
sizenumber1.6Size of a glint in pixels.
sizeVariancenumber0.6How much the sizes differ.
brightnessnumber1Overall brightness.
spreadnumber1Width of the field.
hollownumber0.06Size of the empty middle of the field.
perspectivenumber0.7Depth of the field; higher values fling near glints wider and faster.
centerXnumber0.5Horizontal position of the point the glints leave from, 0 is the left edge.
centerYnumber0.5Vertical position of that point, 0 is the top edge.
speednumber0.5Travel speed.
direction"outward" | "inward""outward"Glints fly toward the camera or away from it.
twistnumber0Winds the paths around the center.
turbulencenumber0Wobble of the paths.
trailnumber0.08Stretches each glint along its path.
glitternumber0.5How many glints flash as stars.
glintSizenumber1Size of the star flashes.
twinklenumber0.5How much the glints flicker.
focusnumber0.62Depth that is in focus, 0 far to 1 near.
aperturenumber0.45How quickly glints blur away from the focus.
boostnumber7Speed multiplier while the pointer is held down; 1 turns it off.
parallaxnumber0.5How far the view turns toward the pointer.
wavesbooleantrueA click or tap sends a wave of light through the field.
introbooleantrueThe field fades and swells in on mount.
pausedbooleanfalseFreezes the motion.
dprnumber2Upper limit for the device pixel ratio.
childrenReactNodeNoneContent laid over the field. Clicks on its links and buttons never send waves.
refRef<GlintDriftHandle>NoneImperative handle.
classNamestringNoneClasses for the root element; give it a height.
styleCSSPropertiesNoneInline styles for the root element.

Related