# Paper Stack

> A sheet with two slightly rotated pages peeking out from behind it.

- Category: [CSS Box Shadows](https://copy-css.com/category/shadows)
- Tags: stack, paper, layers, pseudo-element, depth
- Live preview: https://copy-css.com/snippets/paper-stack-shadow
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="paper-stack"></div>
```

## CSS

```css
/* Tip: give the parent `isolation: isolate` so the pseudo-element shadows stay visible */
.paper-stack {
  position: relative;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.paper-stack::before,
.paper-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.paper-stack::before {
  transform: rotate(-4deg);
}

.paper-stack::after {
  transform: rotate(3deg) translate(4px, 2px);
}
```

## Notes

- This CSS Paper Stack is 26 lines of pure CSS (0.5 KB) with no JavaScript and no dependencies. It uses transforms and box shadows.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
