Stacked Cards Effect

Stacked Cards Effect: Three skewed cards fanned behind a front hero card — hover brings subtle motion. Collection and portfolio layouts with depth, no Three.js required. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Stacked Cards Effect

npx motion-ui-skill add stacked-cards-effect

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • next
  • react
  • tailwind-merge

Source files

Stacked Cards Effect

Three skewed cards fanned behind a front hero card — hover brings subtle motion. Collection and portfolio layouts with depth, no Three.js required.

Install

npx motion-ui-skill add stacked-cards-effect

Dependencies

  • clsx
  • next
  • react
  • tailwind-merge

Usage

"use client";

import { StackedCardsEffect } from "@/components/others/stacked-cards-effect";

export function StackedCardsEffectDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <StackedCardsEffect />
    </div>
  );
}

API Reference

StackedCardsEffect

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category