April 8, 2026SimpleScroll & Parallax
Heading Scroll Parallax
Oversized display headings drift vertically at different rates as you scroll, creating layered depth. Each heading moves independently using useTransform with unique y ranges.
Preview
Motion
Design
Studio
Source
import HeadingScrollParallax from "./index.jsx";
import styles from "./demo.module.css";
export default function HeadingScrollParallaxDemo() {
return (
<div>
{/* Intro — pushes the parallax section below the fold */}
<section className={styles.intro}>
<p className={styles.introLabel}>Scroll animation</p>
<h2 className={styles.introTitle}>Each heading moves at a different speed as you scroll through the section.</h2>
</section>
{/* The component — scroll into this to see the parallax */}
<HeadingScrollParallax headings={["Motion", "Design", "Studio"]} />
{/* Trailing space — lets you scroll past the section */}
<section className={styles.outro}>
<p className={styles.outroText}>Keep scrolling to see the full effect.</p>
</section>
</div>
);
}
Dependencies
framer-motion