Scroll Video

NewPremium

Video that advances frame-by-frame as the user scrolls. Apple-style product reveal effect with sticky positioning.

scrollvideostickyapple-style

Installation

Terminalbash
npx motion-primitives-website add scroll-video

Usage

scroll-video.tsxtsx
import { ScrollVideo } from "@/components/scroll/scroll-video";

<ScrollVideo src="/product-reveal.mp4" sticky />

Props

PropTypeDefaultDescription
src*string—Video source URL
startFramenumber0Start time in seconds
endFramenumber—End time in seconds
stickybooleantrueEnable sticky positioning
classNamestring—Additional CSS classes

Related Components