More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
imageSrc | undefined | URL of the logo or image to paint. SVGs work best. Transparent pixels are left empty. |
text | undefined | Text to paint instead of an image. Takes priority over imageSrc. |
fontFamily | 'system-ui, sans-serif' | Font used for text. |
fontWeight | 800 | Font weight used for text. |
color | '#ffffff' | Tint of the metal. White keeps it chrome, warm tones turn it gold or copper. |
backgroundColor | 'transparent' | Color behind the shape. By default the canvas is transparent. |
density | 2 | How many reflection bands run across the shape. |
softness | 0.1 | Softness of the reflection edges, from 0 for crisp chrome to 1 for brushed metal. |
dispersion | 0.3 | Rainbow fringes where the reflections bend, from 0 to 1. |
distortion | 0.07 | How much the reflections ripple as they flow, from 0 to 1. |
edgeBend | 0.6 | How strongly the reflections bend around the edges of the shape, from 0 to 1. |
angle | 70 | Direction the reflections flow in, in degrees. |
speed | Speed of the flow. 0 freezes it. | |
scale | 0.6 | Size of the shape inside the canvas. |
rotation | Rotation of the shape, in degrees. | |
mouseTilt | 0.5 | How much the reflections shift as the cursor moves, as if tilting the metal. |
lightMode | Adds a soft dark rim and dims the brightest highlights so the shape reads on light pages. | |
| Pours the metal in from the outline on mount. | ||
paused | Freezes the animation. | |
dpr | auto | Device pixel ratio cap. Renders at 2× or more for clean edges. |
| Extra class names for the container. | ||
undefined | Inline styles for the container. |
imageSrcstringURL of the logo or image to paint. SVGs work best. Transparent pixels are left empty.
undefinedtextstringText to paint instead of an image. Takes priority over imageSrc.
undefinedfontFamilystringFont used for text.
'system-ui, sans-serif'fontWeightnumberFont weight used for text.
800colorstringTint of the metal. White keeps it chrome, warm tones turn it gold or copper.
'#ffffff'backgroundColorstringColor behind the shape. By default the canvas is transparent.
'transparent'densitynumberHow many reflection bands run across the shape.
2softnessnumberSoftness of the reflection edges, from 0 for crisp chrome to 1 for brushed metal.
0.1dispersionnumberRainbow fringes where the reflections bend, from 0 to 1.
0.3distortionnumberHow much the reflections ripple as they flow, from 0 to 1.
0.07edgeBendnumberHow strongly the reflections bend around the edges of the shape, from 0 to 1.
0.6anglenumberDirection the reflections flow in, in degrees.
70speednumberSpeed of the flow. 0 freezes it.
scalenumberSize of the shape inside the canvas.
0.6rotationnumberRotation of the shape, in degrees.
mouseTiltnumberHow much the reflections shift as the cursor moves, as if tilting the metal.
0.5lightModebooleanAdds a soft dark rim and dims the brightest highlights so the shape reads on light pages.
introbooleanPours the metal in from the outline on mount.
pausedbooleanFreezes the animation.
dprnumberDevice pixel ratio cap. Renders at 2× or more for clean edges.
autoExtra class names for the container.
Inline styles for the container.
undefined


