Size
0.7
Glow
0.9
Haze
0.7
Strands
6
Crackle
0.85
Flares
0.65
Sparks
0.6
Particles
15000
Fill
0.5
Depth
0.6
Twinkle
0.5
Speed
Dust Speed
Sway
0.5
Hover Strength
0.7

More cursor effects in Pro

Cursor trails and pointer effects that give a site its own feel.

View all 19
25 properties
preset'plasma' | 'aurora' | 'nebula' | 'ember' | 'frost' | 'solar' | 'eclipse' | 'abyss''plasma'A complete starting look, color included. Any prop marked from preset overrides the preset value when you pass it.
colorfrom presetThe one color of the ball. The white-hot rim, its glow and flares, the dust tones, sparks and haze are all derived from it.
theme'dark' | 'light''dark'The background the ball sits on. Dark renders it as emitted light. Light draws it in crisp ink with a white-hot rim core.
size0.7Diameter of the ball as a fraction of the smaller side of the container.
strandsfrom presetNumber of electric strands braided around the rim, from 1 to 8.
cracklefrom presetHow far the strands bend and jitter. Low values hum quietly, high values crackle.
flaresfrom presetHow far the glow licks outward from the rim in slow, travelling flares.
glowfrom presetStrength of the halo around the rim.
sparksfrom presetHow often small arcs discharge along the inside of the rim. 0 turns them off.
particleCountfrom presetNumber of dust particles in the ball, up to 40000.
fillfrom presetHow full the ball is. Low values pool the dust at the bottom, high values float it up to the top.
motion'rise' | 'fall' | 'drift' | 'orbit'from presetHow the dust moves. Rise floats like embers, fall drifts down like snow, drift wanders and orbit loops in small circles.
particleShape'square' | 'round'from presetCrisp square pixels or soft round dots.
depthfrom presetStrength of the depth cues. Dust at the back of the ball gets smaller and dimmer.
swayfrom presetHow much the dust turns back and forth inside the glass, showing its depth.
twinklefrom presetHow much the dust sparkles on and off.
hazefrom presetStrength of the glow that pools under the dust and along the inside of the glass.
speedAnimation speed of the rim, flares and sparks.
dustSpeedfrom presetAnimation speed of the dust.
interactiveLets the cursor touch the ball. The rim heats up and flares toward it, the dust swirls in its wake and turns toward it, and a click shakes the ball.
hoverStrength0.7How strongly the ball reacts to the cursor, from 0 to 1.
On mount the rim powers up and the dust lights up from the bottom of the ball.
pausedFreezes the animation. The dust can still be stirred.
Extra class names for the root element.
Inline styles for the root element.
preset'plasma' | 'aurora' | 'nebula' | 'ember' | 'frost' | 'solar' | 'eclipse' | 'abyss'

A complete starting look, color included. Any prop marked from preset overrides the preset value when you pass it.

Default'plasma'
colorstring

The one color of the ball. The white-hot rim, its glow and flares, the dust tones, sparks and haze are all derived from it.

Defaultfrom preset
theme'dark' | 'light'

The background the ball sits on. Dark renders it as emitted light. Light draws it in crisp ink with a white-hot rim core.

Default'dark'
sizenumber

Diameter of the ball as a fraction of the smaller side of the container.

Default0.7
strandsnumber

Number of electric strands braided around the rim, from 1 to 8.

Defaultfrom preset
cracklenumber

How far the strands bend and jitter. Low values hum quietly, high values crackle.

Defaultfrom preset
flaresnumber

How far the glow licks outward from the rim in slow, travelling flares.

Defaultfrom preset
glownumber

Strength of the halo around the rim.

Defaultfrom preset
sparksnumber

How often small arcs discharge along the inside of the rim. 0 turns them off.

Defaultfrom preset
particleCountnumber

Number of dust particles in the ball, up to 40000.

Defaultfrom preset
fillnumber

How full the ball is. Low values pool the dust at the bottom, high values float it up to the top.

Defaultfrom preset
motion'rise' | 'fall' | 'drift' | 'orbit'

How the dust moves. Rise floats like embers, fall drifts down like snow, drift wanders and orbit loops in small circles.

Defaultfrom preset
particleShape'square' | 'round'

Crisp square pixels or soft round dots.

Defaultfrom preset
depthnumber

Strength of the depth cues. Dust at the back of the ball gets smaller and dimmer.

Defaultfrom preset
swaynumber

How much the dust turns back and forth inside the glass, showing its depth.

Defaultfrom preset
twinklenumber

How much the dust sparkles on and off.

Defaultfrom preset
hazenumber

Strength of the glow that pools under the dust and along the inside of the glass.

Defaultfrom preset
speednumber

Animation speed of the rim, flares and sparks.

dustSpeednumber

Animation speed of the dust.

Defaultfrom preset
interactiveboolean

Lets the cursor touch the ball. The rim heats up and flares toward it, the dust swirls in its wake and turns toward it, and a click shakes the ball.

hoverStrengthnumber

How strongly the ball reacts to the cursor, from 0 to 1.

Default0.7
introboolean

On mount the rim powers up and the dust lights up from the bottom of the ball.

pausedboolean

Freezes the animation. The dust can still be stirred.

Extra class names for the root element.

Inline styles for the root element.

Dependencies

1 required package

npm install ogl