Animations
ParallaxScroll
Apply a parallax scroll effect to any element based on scroll position.
Quick Preview
Parallax container
Installation
npm install framer-motion
// Copy fromsrc/components/animations/ParallaxScroll.tsx
Examples
Reversed parallax (text floats up)
Reversed speed
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children* | React.ReactNode | - | Content to apply parallax to |
speed | number | 0.5 | Parallax intensity (0 = none, 1 = full scroll) |
reverse | boolean | false | Reverse the parallax direction |
className | string | - | Additional CSS classes |