---
title: "Stacked Cards Effect | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/stacked-cards-effect"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/others/stacked-cards-effect.tsx"
install_command: "npx motion-ui-skill add stacked-cards-effect"
dependencies: ["clsx","next","react","tailwind-merge"]
category: "craft"
subcategory: "others"
---

# 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

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

## Dependencies

- `clsx`
- `next`
- `react`
- `tailwind-merge`

## Usage

```tsx
"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 |

## Source Files

- [components/others/stacked-cards-effect.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/others/stacked-cards-effect.tsx)
- [lib/cn.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/cn.ts)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
