Mountain range at sunrise

Every pixel, everywhere

The frame opens up as you scroll and hands the whole stage to your media.

Built to scale
Scroll inside the frame
Start Width
42%
Start Height
58%
Start Radius
24px
End Radius
0px
Media Zoom
1.35
Scroll Distance
1.2
Hold Distance
0.35
Smoothing
0.1s
Overlay Scrim
0.45

More cursor effects in Pro

Cursor trails and pointer effects that give a site its own feel.

View all 19
20 properties
srcImage or video URL shown inside the frame.
mediaType"image" | "video""image"Whether the source is an image or a looping muted video.
posterPoster frame used while a video loads.
altAlt text for the image.
titleHeadline held over the frame that lifts away as the media takes over.
scrollHintSmall cue shown under the resting frame that fades away as soon as the scroll begins.
startWidth42Frame width before expanding, as a percentage of the stage.
startHeight58Frame height before expanding, as a percentage of the stage.
startRadius24Corner radius of the resting frame, in px.
endRadiusCorner radius once fully expanded, in px.
mediaZoom1.35How far the media is zoomed in at rest. It eases back to 1 as the frame opens up.
scrollDistance1.2Scroll length of the expansion, in multiples of the stage height.
holdDistance0.35Extra scroll the frame stays pinned at full bleed before releasing.
smoothing0.1Follow time in seconds. 0 locks the frame exactly to the scrollbar.
overlayScrim0.45Strength of the gradient scrim that fades in to keep overlay content readable.
useWindowScrollDrive the expansion from the page scroll instead of the component’s own scroller.
enabledEnable or disable the expansion.
childrenReact.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.
srcstring

Image or video URL shown inside the frame.

mediaType"image" | "video"

Whether the source is an image or a looping muted video.

Default"image"
posterstring

Poster frame used while a video loads.

altstring

Alt text for the image.

titlestring

Headline held over the frame that lifts away as the media takes over.

scrollHintstring

Small cue shown under the resting frame that fades away as soon as the scroll begins.

startWidthnumber

Frame width before expanding, as a percentage of the stage.

Default42
startHeightnumber

Frame height before expanding, as a percentage of the stage.

Default58
startRadiusnumber

Corner radius of the resting frame, in px.

Default24
endRadiusnumber

Corner radius once fully expanded, in px.

mediaZoomnumber

How far the media is zoomed in at rest. It eases back to 1 as the frame opens up.

Default1.35
scrollDistancenumber

Scroll length of the expansion, in multiples of the stage height.

Default1.2
holdDistancenumber

Extra scroll the frame stays pinned at full bleed before releasing.

Default0.35
smoothingnumber

Follow time in seconds. 0 locks the frame exactly to the scrollbar.

Default0.1
overlayScrimnumber

Strength of the gradient scrim that fades in to keep overlay content readable.

Default0.45
useWindowScrollboolean

Drive the expansion from the page scroll instead of the component’s own scroller.

enabledboolean

Enable or disable the expansion.

childrenReact.ReactNode

Content that fades in over the media once it reaches full bleed.

Default—

Additional class names for the container.

styleobject

Inline styles for the container.

Default—