# Polaroid Photo

> A tilted instant-photo frame with a handwritten caption and a strip of tape that straightens on hover.

- Category: [CSS Effects](https://copy-css.com/category/effects)
- Tags: polaroid, photo frame, tape, scrapbook, rotate, caption
- Live preview: https://copy-css.com/snippets/polaroid-photo
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<figure class="polaroid">
  <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f472b6'/%3E%3Cstop offset='1' stop-color='%23fdba74'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='60' height='40' fill='url(%23s)'/%3E%3Ccircle cx='42' cy='15' r='7' fill='%23fef08a'/%3E%3Cpath d='M0 40V26l12-8 10 7 9-5 14 9 15-6v17z' fill='%237c3aed'/%3E%3Cpath d='M0 40v-8l16-5 12 4 14-6 18 6v9z' fill='%234c1d95'/%3E%3C/svg%3E" alt="Purple hills under a pink sunset" width="180" height="150">
  <figcaption>Summer '26</figcaption>
</figure>
```

## CSS

```css
.polaroid {
  position: relative;
  width: 180px;
  margin: 0;
  padding: 10px 10px 0;
  background: #fffdf8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 14px 28px -12px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 70px;
  height: 22px;
  background: rgba(253, 230, 138, 0.75);
  transform: translateX(-50%) rotate(3deg);
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

.polaroid figcaption {
  padding: 8px 0 12px;
  color: #44403c;
  font: 20px "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  text-align: center;
}

.polaroid:hover {
  transform: rotate(0) scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .polaroid {
    transition: none;
  }
}
```

## Notes

- This CSS Polaroid Photo is 46 lines of pure CSS (0.9 KB) with no JavaScript and no dependencies. It uses transitions, transforms, box shadows and aspect-ratio.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
