@crazygl/hero-scroll-video
v0.1.1
Published
Scroll Video — A muted video that scrubs frame-by-frame as the page scrolls past — frames are pre-decoded on load so scrubbing is instant even when the clip isn't keyframe-dense. Scroll up and down to move through the… A customizable CrazyGL animated hero
Maintainers
Readme
Hero made by @ybouane.
@crazygl/hero-scroll-video
A muted video that scrubs frame-by-frame as the page scrolls past — frames are pre-decoded on load so scrubbing is instant even when the clip isn't keyframe-dense. Scroll up and down to move through the shot.
Demo
Install
npm install @crazygl/hero-scroll-videoUsage
import ScrollVideo from '@crazygl/hero-scroll-video';
export default function Page() {
return (
<ScrollVideo
video="https://crazygl.com/samples/drone-1.mp4"
heading="Every frame, on scroll."
subheading="Scroll to move through the shot."
headingPosition="bottom-left"
/>
);
}For the smoothest fallback seeking, re-encode the clip with frequent keyframes, e.g.:
ffmpeg -i in.mp4 -g 6 -keyint_min 6 -sc_threshold 0 -c:v libx264 -crf 22 -an out.mp4Customise
- Video —
videosource,poster, andobjectFit(cover / contain). - Scrub —
smoothingplayhead glide,reverse, andstartAt/endAtto trim where the scroll maps in the clip. - Overlay —
heading,subheading,headingPosition,textColor,scrimdarkening, andfontFamily.
Best for
- Cinematic product and travel landing pages
- Brand storytelling and launch films
- Drone / aerial showreels and agency portfolios
- Any hero where scroll should drive a curated shot
This hero is part of CrazyGL, a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready SKILL.md file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.
