More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
imageSrc | required | Sticker image. Use a PNG with a transparent background so the die-cut outline shows. | |
width | 200 | Width of the sticker in pixels. | |
rotate | Resting rotation of the sticker in degrees. | ||
finish | 'gloss' | 'matte' | 'holo' | 'gloss' | Surface of the sticker. Holo turns light areas into foil with rainbow bands and glitter. |
peelBackHoverPct | 25 | How far the sticker peels back on hover, as a percentage of its size. | |
peelBackActivePct | 40 | How far the sticker peels back while pressed or dragged. | |
peelDirection | Edge that peels, in degrees clockwise from the top. With followPointer it is used when the cursor is near the middle. | ||
followPointer | Peels the edge or corner nearest the cursor, and the edge you grab while dragging. | ||
curlRadius | 12 | Radius of the curl where the sticker bends, in pixels. Larger values feel like thicker vinyl. | |
backColor | '#d4d4d8' | Color of the back of the sticker, seen on the peeled part. | |
lightingIntensity | 0.5 | Strength of the highlights that follow the cursor, from 0 to 1. | |
shadowIntensity | 0.6 | Strength of the shadows under the sticker and the peeled part, from 0 to 1. | |
draggable | Lets the sticker be picked up, dragged and thrown around its parent. | ||
swing | How much the sticker swings around the point you hold while dragging, from 0 to 3. | ||
friction | 0.5 | How quickly a thrown sticker slides to a stop, from 0 (ice) to 1 (felt). | |
bounce | 0.35 | How much of its speed a thrown sticker keeps when it hits the edge of its parent. | |
| Drops the sticker onto the surface on mount and smooths its corner down. | |||
initialPosition | 'center' | { x: number; y: number } | 'center' | Starting position. An object offsets the sticker from the center of its parent, in pixels. |
onDragStart | () => void | Called when the sticker starts being dragged. | |
onDragEnd | () => void | Called when the sticker is released. | |
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the root element. | |||
| Inline styles for the root element. |
imageSrcstringSticker image. Use a PNG with a transparent background so the die-cut outline shows.
requiredwidthnumberWidth of the sticker in pixels.
200rotatenumberResting rotation of the sticker in degrees.
finish'gloss' | 'matte' | 'holo'Surface of the sticker. Holo turns light areas into foil with rainbow bands and glitter.
'gloss'peelBackHoverPctnumberHow far the sticker peels back on hover, as a percentage of its size.
25peelBackActivePctnumberHow far the sticker peels back while pressed or dragged.
40peelDirectionnumberEdge that peels, in degrees clockwise from the top. With followPointer it is used when the cursor is near the middle.
followPointerbooleanPeels the edge or corner nearest the cursor, and the edge you grab while dragging.
curlRadiusnumberRadius of the curl where the sticker bends, in pixels. Larger values feel like thicker vinyl.
12backColorstringColor of the back of the sticker, seen on the peeled part.
'#d4d4d8'lightingIntensitynumberStrength of the highlights that follow the cursor, from 0 to 1.
0.5shadowIntensitynumberStrength of the shadows under the sticker and the peeled part, from 0 to 1.
0.6draggablebooleanLets the sticker be picked up, dragged and thrown around its parent.
swingnumberHow much the sticker swings around the point you hold while dragging, from 0 to 3.
frictionnumberHow quickly a thrown sticker slides to a stop, from 0 (ice) to 1 (felt).
0.5bouncenumberHow much of its speed a thrown sticker keeps when it hits the edge of its parent.
0.35introbooleanDrops the sticker onto the surface on mount and smooths its corner down.
initialPosition'center' | { x: number; y: number }Starting position. An object offsets the sticker from the center of its parent, in pixels.
'center'onDragStart() => voidCalled when the sticker starts being dragged.
onDragEnd() => voidCalled when the sticker is released.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the root element.
Inline styles for the root element.



