More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
shape | 'rect' | 'circle' | 'polygon' | 'star' | 'rect' | Shape to draw. A rectangle follows the container so it works as a frame. |
src | URL of an SVG or transparent PNG to use as the shape instead. Its silhouette is traced, so outline, echoes and blur all work on it. | ||
sides | 6 | Sides of the polygon or points of the star. | |
size | 0.8 | How much of the container the shape fills, from 0 to 1. 1 reaches the edges. | |
roundness | 0.2 | Rounds the corners, from 0 to 1. | |
thickness | 2 | Line width in pixels. | |
fill | Fills the shape instead of drawing its outline. | ||
echoes | Number of lines. Outlines nest inward and filled shapes ripple outward. | ||
spacing | 12 | Distance between echoes in pixels. | |
color | '#ffffff' | Line color. Dark colors are drawn for light backgrounds. | |
blur | 16 | How far out of focus the lens pushes the shape, in pixels. | |
lensSize | 0.3 | Radius of the lens around the pointer, relative to the shorter side of the container. | |
lensSoftness | 0.7 | How gradually the blur fades out toward the edge of the lens, from 0 to 1. | |
focus | Inverts the lens: the shape stays blurred and the pointer brings it into focus. | ||
chroma | 0.3 | Color fringing in the blurred parts, like a real lens, from 0 to 1. | |
rotation | Rotation of the shape in degrees. | ||
spin | Rotation speed in degrees per second. | ||
idle | Lets the lens drift on its own while the pointer is away. | ||
children | ReactNode | Content centered on top of the shape, for example a headline inside a frame. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
shape'rect' | 'circle' | 'polygon' | 'star'Shape to draw. A rectangle follows the container so it works as a frame.
'rect'srcstringURL of an SVG or transparent PNG to use as the shape instead. Its silhouette is traced, so outline, echoes and blur all work on it.
sidesnumberSides of the polygon or points of the star.
6sizenumberHow much of the container the shape fills, from 0 to 1. 1 reaches the edges.
0.8roundnessnumberRounds the corners, from 0 to 1.
0.2thicknessnumberLine width in pixels.
2fillbooleanFills the shape instead of drawing its outline.
echoesnumberNumber of lines. Outlines nest inward and filled shapes ripple outward.
spacingnumberDistance between echoes in pixels.
12colorstringLine color. Dark colors are drawn for light backgrounds.
'#ffffff'blurnumberHow far out of focus the lens pushes the shape, in pixels.
16lensSizenumberRadius of the lens around the pointer, relative to the shorter side of the container.
0.3lensSoftnessnumberHow gradually the blur fades out toward the edge of the lens, from 0 to 1.
0.7focusbooleanInverts the lens: the shape stays blurred and the pointer brings it into focus.
chromanumberColor fringing in the blurred parts, like a real lens, from 0 to 1.
0.3rotationnumberRotation of the shape in degrees.
spinnumberRotation speed in degrees per second.
idlebooleanLets the lens drift on its own while the pointer is away.
childrenReactNodeContent centered on top of the shape, for example a headline inside a frame.
Extra class names for the container.
Inline styles for the container.



