More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
src | lightning bolt | Any image URL. SVGs and transparent PNGs are traced by their alpha, opaque images by keying out their backdrop colour. | |
color | '#ecc7ff' | Colour of the hot core of every strand. | |
glowColor | '#ad6dff' | Colour of the glow around the strands, the bloom and the interior fill. | |
scale | 0.7 | Size of the logo as a fraction of the container. The glow and arcs extend beyond it. | |
intensity | Overall brightness of the effect. | ||
glow | Strength of the halo around strands and the soft bloom around the shape. | ||
thickness | 1.5 | Width of the main strand, in px. Satellite strands are thinner, and every strand swells and thins as it flows. | |
strands | 4 | Number of filaments tracing the outline, from 1 to 6. Extra strands come and go along the edge. | |
bend | 0.6 | How far the strands sway and ripple away from the outline. The main strand stays closest. | |
crackle | 1.5 | Size of the fine crinkle along every strand and arc. | |
arcs | How often short arcs leap off the edge and land further along it. 0 turns them off. | ||
flicker | 0.6 | How much the whole effect pulses and each strand shimmers in brightness. | |
fill | Translucent glow inside the shape, brightest near its edges. | ||
speed | 2.5 | Animation speed. 0 freezes the current frame. | |
interactive | Turn on pointer interactions. Hovering charges the lightning around the cursor, and a click sends a ripple through it with a burst of arcs. | ||
cursorIntensity | 0.75 | How strongly the lightning charges up around the cursor. 0 turns the hover charge off. | |
cursorRadius | 100 | Radius of the charged area around the cursor, in px. | |
theme | 'dark' | 'light' | 'dark' | The background the logo sits on. Dark renders the lightning as emitted light. Light renders crisp electric ink with a white-hot core and a lighter fill. |
onRender | (canvas: HTMLCanvasElement) => void | undefined | Called immediately after each rendered frame. Copy the canvas synchronously to capture the current frame for effects such as live reflections. |
| Extra classes on the container. | |||
| Inline styles on the container. |
srcstringAny image URL. SVGs and transparent PNGs are traced by their alpha, opaque images by keying out their backdrop colour.
lightning boltcolorstringColour of the hot core of every strand.
'#ecc7ff'glowColorstringColour of the glow around the strands, the bloom and the interior fill.
'#ad6dff'scalenumberSize of the logo as a fraction of the container. The glow and arcs extend beyond it.
0.7intensitynumberOverall brightness of the effect.
glownumberStrength of the halo around strands and the soft bloom around the shape.
thicknessnumberWidth of the main strand, in px. Satellite strands are thinner, and every strand swells and thins as it flows.
1.5strandsnumberNumber of filaments tracing the outline, from 1 to 6. Extra strands come and go along the edge.
4bendnumberHow far the strands sway and ripple away from the outline. The main strand stays closest.
0.6cracklenumberSize of the fine crinkle along every strand and arc.
1.5arcsnumberHow often short arcs leap off the edge and land further along it. 0 turns them off.
flickernumberHow much the whole effect pulses and each strand shimmers in brightness.
0.6fillnumberTranslucent glow inside the shape, brightest near its edges.
speednumberAnimation speed. 0 freezes the current frame.
2.5interactivebooleanTurn on pointer interactions. Hovering charges the lightning around the cursor, and a click sends a ripple through it with a burst of arcs.
cursorIntensitynumberHow strongly the lightning charges up around the cursor. 0 turns the hover charge off.
0.75cursorRadiusnumberRadius of the charged area around the cursor, in px.
100theme'dark' | 'light'The background the logo sits on. Dark renders the lightning as emitted light. Light renders crisp electric ink with a white-hot core and a lighter fill.
'dark'onRender(canvas: HTMLCanvasElement) => voidCalled immediately after each rendered frame. Copy the canvas synchronously to capture the current frame for effects such as live reflections.
undefinedExtra classes on the container.
Inline styles on the container.
Dependencies
1 required package
npm install ogl


