Parallax Scroll
Parallax scrolling effect with configurable speed and direction.
scrollparallaxanimated
Installation
Terminalbash
npx motioncraft add parallax-scrollUsage
parallax-scroll.tsxtsx
import { ParallaxScroll } from "@/components/scroll/parallax-scroll";
<ParallaxScroll speed={0.3}>
<img src="/hero.jpg" alt="Hero" />
</ParallaxScroll>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children* | ReactNode | — | Content to parallax |
| speed | number | 0.5 | Parallax speed |
Related Components
Scroll Video
NewVideo that advances frame-by-frame as the user scrolls. Apple-style product reveal effect with sticky positioning.
Infinite Scroll
Continuous horizontal or vertical scrolling content with seamless looping.
Morphing Nav
NewNavigation that morphs between three modes: full bar, floating pill, and fullscreen overlay. Scroll-aware with direction-aware motion.
Split Screen Text
NewText that splits apart vertically on scroll, revealing content underneath. Scroll-driven with sticky positioning.