@caustics/parallax-cards · v1.0.0
svelte · react · vanilla
60fps · 3KB gzipped
$29 →
component · 008
Parallax Cards
Cards that respond to the cursor with subtle 3D depth.
Preset
Speed0.6
Intensity0.5
Or get everything for $499 →
Quick Start

That's it. Your site now has parallax cards.

npm install @caustics/parallax-cards

<script>
  import { ParallaxCards } from '@caustics/parallax-cards';
</script>

<ParallaxCards preset="subtle" />
Configuration API

Sensible defaults. Documented types.

Prop Type Default Description
preset string "subtle" Named preset. Overrides individual props when set.
speed number 1.0 Animation speed multiplier. 0 = static.
intensity number 0.5 Effect intensity. Range: 0–1.
colors string[] undefined Override palette. Accepts hex, hsl, or CSS custom properties.
reducedMotion 'pause' | 'static' 'static' Behavior when prefers-reduced-motion is active.
class string undefined Additional CSS classes applied to the root element.
What's Included

A zip. Everything else lives at caustics.dev.

caustics-parallax-cards/
├── svelte/     ParallaxCards.svelte · index.ts · types.ts
├── react/      ParallaxCards.tsx · index.ts · types.ts
├── vanilla/    parallax-cards.ts · compiled .js
├── docs/       README.md · API.md · CHANGELOG.md
├── LICENSE.md  MIT, commercial use included
└── package.json

Parallax Cards applies CSS perspective and rotateX/Y transforms based on cursor position. Child elements with data-depth attributes move at different rates, creating a parallax depth illusion. The effect is used on every product card on this site.

Supports DeviceOrientation API for gyroscope tilt on mobile.

Ready to ship?

Get Everything — $499

MIT license · commercial use included · lifetime updates