Expand Frame
A framed image or video that opens up to full bleed as you scroll: the title lifts away, the media eases back from its zoom, and overlay content fades in once it fills the stage.
pixikit.com/docs/effects/expand-frame
Customize
Media type
Start width42%
Start height58%
Start radius24px
End radius0px
Media zoom1.35
Scroll distance1.2
Hold distance0.35
Smoothing0.10s
Overlay scrim0.45
Use window scroll
Enabled
Props
20| Name | Type | Default | Description |
|---|---|---|---|
src | string | "" | Image or video address shown inside the frame. |
mediaType | "image" | "video" | "image" | Whether the source is an image or a looping muted video. |
poster | string | "" | Poster frame used while a video loads. |
alt | string | "" | Alt text for the image. |
title | string | "" | Headline held over the frame that lifts away as the media takes over. |
scrollHint | string | "" | Small cue under the resting frame that fades away as soon as the scroll begins. |
startWidth | number | 42 | Frame width before expanding, as a percent of the stage. |
startHeight | number | 58 | Frame height before expanding, as a percent of the stage. |
startRadius | number | 24 | Corner radius of the resting frame, in pixels. |
endRadius | number | 0 | Corner radius once fully expanded, in pixels. |
mediaZoom | number | 1.35 | How far the media is zoomed in at rest; it eases back to 1 as the frame opens up. |
scrollDistance | number | 1.2 | Scroll length of the expansion, in multiples of the stage height. |
holdDistance | number | 0.35 | Extra scroll the frame stays pinned at full bleed before releasing. |
smoothing | number | 0.1 | Follow time in seconds; 0 locks the frame exactly to the scrollbar. |
overlayScrim | number | 0.45 | Strength of the gradient scrim that fades in to keep overlay content readable. |
useWindowScroll | boolean | false | Drive the expansion from the page scroll instead of the component's own scroller. |
enabled | boolean | true | Enable or disable the expansion. |
children | ReactNode | None | Content that fades in over the media once it reaches full bleed. |
className | string | None | |
style | CSSProperties | None |