More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
src | undefined | Any image URL. SVGs and transparent PNGs are read by their alpha, opaque images by keying out their backdrop color. When set, it replaces the text. | |
text | 'NEON' | Word to draw when no src is given. | |
fontFamily | 'Inter, system-ui, sans-serif' | Font for the text. It is loaded before the first frame when it is available on the page. | |
fontWeight | 500 | Weight of the text. | |
scale | 0.7 | Size of the logo as a fraction of the container. The glow reaches a little past it. | |
baseColor | '#a855f7' | Flat color the logo rests in wherever the heat is not showing. | |
colors | string[] | ['#ffc9f4', '#ea6fe0', ..., '#121646'] | Heat map colors, from the glowing rim to the dark core of every stroke. |
heat | 0.5 | How strongly the heat opens up under the cursor, thinning the strokes as if they were melting. | |
radius | 1.5 | Size of the hot area around the cursor. | |
softness | 0.25 | How soft the edges are. Higher values let nearby strokes run together. | |
swell | 0.1 | How much the strokes swell and merge where the heat is. | |
idle | 'drift' | 'lit' | 'none' | 'drift' | What happens when the cursor is away. Drift sends a slow hot spot wandering over the logo, lit keeps the whole heat map showing, none rests in the base color. |
speed | 2 | Speed of the drifting hot spot. | |
igniteOnClick | A click sends a wave of heat across the logo, followed by a wave that cools it back down. | ||
interactive | Lets the cursor reveal the heat map. | ||
| Melts the logo in when it first appears. A new logo or word always melts in. | |||
opacity | Opacity of the whole effect. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. |
srcstringAny image URL. SVGs and transparent PNGs are read by their alpha, opaque images by keying out their backdrop color. When set, it replaces the text.
undefinedtextstringWord to draw when no src is given.
'NEON'fontFamilystringFont for the text. It is loaded before the first frame when it is available on the page.
'Inter, system-ui, sans-serif'fontWeightnumberWeight of the text.
500scalenumberSize of the logo as a fraction of the container. The glow reaches a little past it.
0.7baseColorstringFlat color the logo rests in wherever the heat is not showing.
'#a855f7'colorsstring[]Heat map colors, from the glowing rim to the dark core of every stroke.
['#ffc9f4', '#ea6fe0', ..., '#121646']heatnumberHow strongly the heat opens up under the cursor, thinning the strokes as if they were melting.
0.5radiusnumberSize of the hot area around the cursor.
1.5softnessnumberHow soft the edges are. Higher values let nearby strokes run together.
0.25swellnumberHow much the strokes swell and merge where the heat is.
0.1idle'drift' | 'lit' | 'none'What happens when the cursor is away. Drift sends a slow hot spot wandering over the logo, lit keeps the whole heat map showing, none rests in the base color.
'drift'speednumberSpeed of the drifting hot spot.
2igniteOnClickbooleanA click sends a wave of heat across the logo, followed by a wave that cools it back down.
interactivebooleanLets the cursor reveal the heat map.
introbooleanMelts the logo in when it first appears. A new logo or word always melts in.
opacitynumberOpacity of the whole effect.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.



