Hover Me.
More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
17 properties
items | string[] | [] | Image URLs shown in the trail, in order. |
size | number | string | 190 | Width of each image in pixels, or any CSS length. |
aspectRatio | 1.1 | Width divided by height for each image. | |
radius | number | string | 15 | Corner radius of the images. |
threshold | 80 | How far the cursor travels, in pixels, before the next image appears. | |
lifetime | 0.4 | Seconds an image stays before it fades out. | |
appearScale | Size an image starts at as it appears. 0 grows it from nothing and 1 shows it at full size right away. | ||
zoom | How far each photo starts zoomed in before settling inside its frame. 1 turns it off. | ||
flash | Brightness flash as an image appears, from 0 to 1. | ||
exitScale | 0.2 | Size an image shrinks or grows to while it fades out. 1 keeps its size. | |
drift | How far images keep flying in the direction of the cursor as they fade, from 0 to 1. | ||
rotation | Random tilt of each image, in degrees. | ||
sizeVariance | Random size variation between images, from 0 to 1. | ||
alignToMotion | Turns each image to face the direction the cursor is moving. | ||
stack | Keeps this many of the newest images on screen in a pile, instead of fading each one on its own. 0 turns it off. | ||
tilt | Tilts images in 3D toward the edge where they appear, in degrees. | ||
| Extra class names for the container. |
itemsstring[]Image URLs shown in the trail, in order.
Default
[]sizenumber | stringWidth of each image in pixels, or any CSS length.
Default
190aspectRationumberWidth divided by height for each image.
Default
1.1radiusnumber | stringCorner radius of the images.
Default
15thresholdnumberHow far the cursor travels, in pixels, before the next image appears.
Default
80lifetimenumberSeconds an image stays before it fades out.
Default
0.4appearScalenumberSize an image starts at as it appears. 0 grows it from nothing and 1 shows it at full size right away.
zoomnumberHow far each photo starts zoomed in before settling inside its frame. 1 turns it off.
flashnumberBrightness flash as an image appears, from 0 to 1.
exitScalenumberSize an image shrinks or grows to while it fades out. 1 keeps its size.
Default
0.2driftnumberHow far images keep flying in the direction of the cursor as they fade, from 0 to 1.
rotationnumberRandom tilt of each image, in degrees.
sizeVariancenumberRandom size variation between images, from 0 to 1.
alignToMotionbooleanTurns each image to face the direction the cursor is moving.
stacknumberKeeps this many of the newest images on screen in a pile, instead of fading each one on its own. 0 turns it off.
tiltnumberTilts images in 3D toward the edge where they appear, in degrees.
Extra class names for the container.
Dependencies
1 required package
npm install gsap


