More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
color | '#B497CF' | Color of the smoke. Dense parts glow lighter. | |
size | 80 | Size of the ghost, in px. | |
trailLength | 50 | How long the smoke lingers behind the cursor, from 1 to 200. | |
inertia | 0.5 | How far the ghost floats behind the cursor and glides on when the cursor leaves, from 0 to 0.99. | |
turbulence | 0.5 | How much the smoke swirls and curls as it drifts, from 0 to 2. | |
drift | 0.3 | How fast the smoke rises. Negative values let it sink. | |
detail | How wispy the smoke is, from 0 for a soft glow to 1 for billowing wisps. | ||
brightness | Brightness of the smoke. | ||
bloomStrength | 0.6 | Strength of the soft glow around the smoke. | |
bloomRadius | How far the glow spreads, from 0 to 3. | ||
bloomThreshold | 0.025 | How bright smoke has to be before it glows. Higher values keep the glow on the core. | |
grainIntensity | 0.05 | Film grain over the smoke, from 0 to 1. | |
edgeIntensity | Fades the smoke out toward the edges of the area, from 0 to 1. | ||
clickPuff | Clicking releases a puff of smoke. | ||
| The ghost floats across once when it first appears, before the cursor arrives. | |||
theme | 'dark' | 'light' | 'dark' | Glowing smoke for dark pages, or soft ink smoke for light ones. |
mixBlendMode | 'screen' (dark), 'normal' (light) | CSS blend mode for the canvas. | |
fadeDelayMs | 1000 (500 on touch) | Time after the cursor stops before the ghost starts to fade, in ms. | |
fadeDurationMs | 1500 (1000 on touch) | How long the fade takes, in ms. | |
maxDevicePixelRatio | 2 | Highest pixel ratio the canvas renders at. | |
targetPixels | 600000 (300000 on touch) | Pixel budget for the smoke. Large areas render it at a lower resolution to stay fast. | |
zIndex | 10 | Stacking order of the effect over your content. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
colorstringColor of the smoke. Dense parts glow lighter.
'#B497CF'sizenumberSize of the ghost, in px.
80trailLengthnumberHow long the smoke lingers behind the cursor, from 1 to 200.
50inertianumberHow far the ghost floats behind the cursor and glides on when the cursor leaves, from 0 to 0.99.
0.5turbulencenumberHow much the smoke swirls and curls as it drifts, from 0 to 2.
0.5driftnumberHow fast the smoke rises. Negative values let it sink.
0.3detailnumberHow wispy the smoke is, from 0 for a soft glow to 1 for billowing wisps.
brightnessnumberBrightness of the smoke.
bloomStrengthnumberStrength of the soft glow around the smoke.
0.6bloomRadiusnumberHow far the glow spreads, from 0 to 3.
bloomThresholdnumberHow bright smoke has to be before it glows. Higher values keep the glow on the core.
0.025grainIntensitynumberFilm grain over the smoke, from 0 to 1.
0.05edgeIntensitynumberFades the smoke out toward the edges of the area, from 0 to 1.
clickPuffbooleanClicking releases a puff of smoke.
introbooleanThe ghost floats across once when it first appears, before the cursor arrives.
theme'dark' | 'light'Glowing smoke for dark pages, or soft ink smoke for light ones.
'dark'mixBlendModestringCSS blend mode for the canvas.
'screen' (dark), 'normal' (light)fadeDelayMsnumberTime after the cursor stops before the ghost starts to fade, in ms.
1000 (500 on touch)fadeDurationMsnumberHow long the fade takes, in ms.
1500 (1000 on touch)maxDevicePixelRationumberHighest pixel ratio the canvas renders at.
2targetPixelsnumberPixel budget for the smoke. Large areas render it at a lower resolution to stay fast.
600000 (300000 on touch)zIndexnumberStacking order of the effect over your content.
10Extra class names for the container.
Inline styles for the container.



