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| Name | Type | Default | Description |
|---|---|---|---|
preset | "glimmer" | "warp" | "gold-dust" | "tunnel" | "dream" | "snowfall" | "horizon" | "glimmer" | A complete look; the props it sets follow it until you pass them. |
colors | string[] | ["#FFFFFF", "#B19EEF"] | Two colors the glints are mixed from. |
backgroundColor | string | "transparent" | Color behind the field. On a light color the glints are drawn as ink. |
count | number | 1500 | Number of glints, 100 to 6000. |
size | number | 1.6 | Size of a glint in pixels. |
sizeVariance | number | 0.6 | How much the sizes differ. |
brightness | number | 1 | Overall brightness. |
spread | number | 1 | Width of the field. |
hollow | number | 0.06 | Size of the empty middle of the field. |
perspective | number | 0.7 | Depth of the field; higher values fling near glints wider and faster. |
centerX | number | 0.5 | Horizontal position of the point the glints leave from, 0 is the left edge. |
centerY | number | 0.5 | Vertical position of that point, 0 is the top edge. |
speed | number | 0.5 | Travel speed. |
direction | "outward" | "inward" | "outward" | Glints fly toward the camera or away from it. |
twist | number | 0 | Winds the paths around the center. |
turbulence | number | 0 | Wobble of the paths. |
trail | number | 0.08 | Stretches each glint along its path. |
glitter | number | 0.5 | How many glints flash as stars. |
glintSize | number | 1 | Size of the star flashes. |
twinkle | number | 0.5 | How much the glints flicker. |
focus | number | 0.62 | Depth that is in focus, 0 far to 1 near. |
aperture | number | 0.45 | How quickly glints blur away from the focus. |
boost | number | 7 | Speed multiplier while the pointer is held down; 1 turns it off. |
parallax | number | 0.5 | How far the view turns toward the pointer. |
waves | boolean | true | A click or tap sends a wave of light through the field. |
intro | boolean | true | The field fades and swells in on mount. |
paused | boolean | false | Freezes the motion. |
dpr | number | 2 | Upper limit for the device pixel ratio. |
children | ReactNode | None | Content laid over the field. Clicks on its links and buttons never send waves. |
ref | Ref<GlintDriftHandle> | None | Imperative handle. |
className | string | None | Classes for the root element; give it a height. |
style | CSSProperties | None | Inline styles for the root element. |