Components / effect

Parallax Card

v1.0.0 · premium

A card with a photo and a foreground layer that drift in opposite directions as the pointer moves, creating depth.

Parallax Card demo

Implementation

A card with a photo and a foreground layer that drift in opposite directions as the pointer moves, creating depth.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function ParallaxCard({ back, front, depth = 18, ink, className }: {
  back: ReactNode;
  /** A decorative layer, such as a large title, drawn over `back`. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A card with a photo and a foreground layer that drift in opposite directions as the pointer moves, creating depth.

Frequently asked questions

Which layer carries the content?

The back layer. Give its image real alt text. The front layer is decorative and hidden from assistive technology.

Why is the back layer scaled up?

So its edges never show while it drifts the opposite way to the front layer.