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

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
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.