{
  "id": "polaroid-photo",
  "name": "Polaroid Photo",
  "category": "effects",
  "tags": [
    "polaroid",
    "photo frame",
    "tape",
    "scrapbook",
    "rotate",
    "caption"
  ],
  "description": "A tilted instant-photo frame with a handwritten caption and a strip of tape that straightens on hover.",
  "url": "https://copy-css.com/snippets/polaroid-photo",
  "markdown": "https://copy-css.com/snippets/polaroid-photo.md",
  "html": "<figure class=\"polaroid\">\n  <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\">\n  <figcaption>Summer '26</figcaption>\n</figure>",
  "css": ".polaroid {\n  position: relative;\n  width: 180px;\n  margin: 0;\n  padding: 10px 10px 0;\n  background: #fffdf8;\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 14px 28px -12px rgba(0, 0, 0, 0.35);\n  transform: rotate(-4deg);\n  transition: transform 0.3s ease;\n}\n\n.polaroid::before {\n  content: \"\";\n  position: absolute;\n  top: -12px;\n  left: 50%;\n  width: 70px;\n  height: 22px;\n  background: rgba(253, 230, 138, 0.75);\n  transform: translateX(-50%) rotate(3deg);\n}\n\n.polaroid img {\n  display: block;\n  width: 100%;\n  height: auto;\n  aspect-ratio: 6 / 5;\n  object-fit: cover;\n}\n\n.polaroid figcaption {\n  padding: 8px 0 12px;\n  color: #44403c;\n  font: 20px \"Segoe Print\", \"Bradley Hand\", \"Comic Sans MS\", cursive;\n  text-align: center;\n}\n\n.polaroid:hover {\n  transform: rotate(0) scale(1.03);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .polaroid {\n    transition: none;\n  }\n}",
  "features": [
    "transitions",
    "transforms",
    "box shadows",
    "aspect-ratio",
    "reduced-motion support"
  ],
  "customProperties": []
}
