Parallax Hero Images

Mouse-driven parallax effect, perfect for hero sections. Images blur fade in and move at different depths.

State of the art, cutting edge images, everywhere.

Move your mouse to see the parallax effect. Images at different depths move at different speeds.

Installation

Run the following command

npx shadcn@latest add @aceternity/parallax-hero-images

Edge Focus Variant

Use the variant="edge-focus" prop to make top and bottom images appear closer while middle images appear further back.

State of the art, cutting edge images, everywhere.

Move your mouse to see the parallax effect. Images at different depths move at different speeds.

Props

Prop nameTypeDefaultDescription
imagesstring[]RequiredArray of image URLs (max 8 images)
classNamestringundefinedCSS classes for the container
imageClassNamestringundefinedCSS classes for each image (use for sizing, e.g. w-60)
variant"default" | "edge-focus""default"Depth variant. default: middle images closest. edge-focus: edges closest

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

200+ templates and blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.