More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
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. |
color | from preset | 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. | |
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. |
size | 0.7 | Diameter of the ball as a fraction of the smaller side of the container. | |
strands | from preset | Number of electric strands braided around the rim, from 1 to 8. | |
crackle | from preset | How far the strands bend and jitter. Low values hum quietly, high values crackle. | |
flares | from preset | How far the glow licks outward from the rim in slow, travelling flares. | |
glow | from preset | Strength of the halo around the rim. | |
sparks | from preset | How often small arcs discharge along the inside of the rim. 0 turns them off. | |
particleCount | from preset | Number of dust particles in the ball, up to 40000. | |
fill | from preset | How 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 preset | How the dust moves. Rise floats like embers, fall drifts down like snow, drift wanders and orbit loops in small circles. |
particleShape | 'square' | 'round' | from preset | Crisp square pixels or soft round dots. |
depth | from preset | Strength of the depth cues. Dust at the back of the ball gets smaller and dimmer. | |
sway | from preset | How much the dust turns back and forth inside the glass, showing its depth. | |
twinkle | from preset | How much the dust sparkles on and off. | |
haze | from preset | Strength of the glow that pools under the dust and along the inside of the glass. | |
speed | Animation speed of the rim, flares and sparks. | ||
dustSpeed | from preset | Animation speed of the dust. | |
interactive | 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. | ||
hoverStrength | 0.7 | How 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. | |||
paused | Freezes 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.
'plasma'colorstringThe one color of the ball. The white-hot rim, its glow and flares, the dust tones, sparks and haze are all derived from it.
from presettheme'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.
'dark'sizenumberDiameter of the ball as a fraction of the smaller side of the container.
0.7strandsnumberNumber of electric strands braided around the rim, from 1 to 8.
from presetcracklenumberHow far the strands bend and jitter. Low values hum quietly, high values crackle.
from presetflaresnumberHow far the glow licks outward from the rim in slow, travelling flares.
from presetglownumberStrength of the halo around the rim.
from presetsparksnumberHow often small arcs discharge along the inside of the rim. 0 turns them off.
from presetparticleCountnumberNumber of dust particles in the ball, up to 40000.
from presetfillnumberHow full the ball is. Low values pool the dust at the bottom, high values float it up to the top.
from presetmotion'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.
from presetparticleShape'square' | 'round'Crisp square pixels or soft round dots.
from presetdepthnumberStrength of the depth cues. Dust at the back of the ball gets smaller and dimmer.
from presetswaynumberHow much the dust turns back and forth inside the glass, showing its depth.
from presettwinklenumberHow much the dust sparkles on and off.
from presethazenumberStrength of the glow that pools under the dust and along the inside of the glass.
from presetspeednumberAnimation speed of the rim, flares and sparks.
dustSpeednumberAnimation speed of the dust.
from presetinteractivebooleanLets 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.
hoverStrengthnumberHow strongly the ball reacts to the cursor, from 0 to 1.
0.7introbooleanOn mount the rim powers up and the dust lights up from the bottom of the ball.
pausedbooleanFreezes 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


