More cursor effects in Pro
Cursor trails and pointer effects that give a site its own feel.
src | Image or video URL shown inside the frame. | ||
mediaType | "image" | "video" | "image" | Whether the source is an image or a looping muted video. |
poster | Poster frame used while a video loads. | ||
alt | Alt text for the image. | ||
title | Headline held over the frame that lifts away as the media takes over. | ||
scrollHint | Small cue shown under the resting frame that fades away as soon as the scroll begins. | ||
startWidth | 42 | Frame width before expanding, as a percentage of the stage. | |
startHeight | 58 | Frame height before expanding, as a percentage of the stage. | |
startRadius | 24 | Corner radius of the resting frame, in px. | |
endRadius | Corner radius once fully expanded, in px. | ||
mediaZoom | 1.35 | How far the media is zoomed in at rest. It eases back to 1 as the frame opens up. | |
scrollDistance | 1.2 | Scroll length of the expansion, in multiples of the stage height. | |
holdDistance | 0.35 | Extra scroll the frame stays pinned at full bleed before releasing. | |
smoothing | 0.1 | Follow time in seconds. 0 locks the frame exactly to the scrollbar. | |
overlayScrim | 0.45 | Strength of the gradient scrim that fades in to keep overlay content readable. | |
useWindowScroll | Drive the expansion from the page scroll instead of the component’s own scroller. | ||
enabled | Enable or disable the expansion. | ||
children | React.ReactNode | — | Content that fades in over the media once it reaches full bleed. |
| Additional class names for the container. | |||
| object | — | Inline styles for the container. |
srcstringImage or video URL shown inside the frame.
mediaType"image" | "video"Whether the source is an image or a looping muted video.
"image"posterstringPoster frame used while a video loads.
altstringAlt text for the image.
titlestringHeadline held over the frame that lifts away as the media takes over.
scrollHintstringSmall cue shown under the resting frame that fades away as soon as the scroll begins.
startWidthnumberFrame width before expanding, as a percentage of the stage.
42startHeightnumberFrame height before expanding, as a percentage of the stage.
58startRadiusnumberCorner radius of the resting frame, in px.
24endRadiusnumberCorner radius once fully expanded, in px.
mediaZoomnumberHow far the media is zoomed in at rest. It eases back to 1 as the frame opens up.
1.35scrollDistancenumberScroll length of the expansion, in multiples of the stage height.
1.2holdDistancenumberExtra scroll the frame stays pinned at full bleed before releasing.
0.35smoothingnumberFollow time in seconds. 0 locks the frame exactly to the scrollbar.
0.1overlayScrimnumberStrength of the gradient scrim that fades in to keep overlay content readable.
0.45useWindowScrollbooleanDrive the expansion from the page scroll instead of the component’s own scroller.
enabledbooleanEnable or disable the expansion.
childrenReact.ReactNodeContent that fades in over the media once it reaches full bleed.
—Additional class names for the container.
styleobjectInline styles for the container.
—


