{
  "id": "spoiler-text",
  "name": "Spoiler Text",
  "category": "text",
  "tags": [
    "blur",
    "hidden",
    "reveal",
    "censor",
    "forum"
  ],
  "description": "Blurred spoiler text that comes into focus on hover, tap or keyboard focus, like on forums and chats.",
  "url": "https://copy-css.com/snippets/spoiler-text",
  "markdown": "https://copy-css.com/snippets/spoiler-text.md",
  "html": "<p class=\"spoiler-note\">The killer was <span class=\"spoiler-blur\" tabindex=\"0\">the butler</span>.</p>",
  "css": ".spoiler-note {\n  max-width: 14em;\n  margin: 0;\n  color: #0f172a;\n  font: 500 22px/1.5 system-ui, sans-serif;\n}\n\n.spoiler-blur {\n  padding: 0 0.2em;\n  border-radius: 0.3em;\n  background: #e2e8f0;\n  color: transparent;\n  text-shadow: 0 0 0.35em #0f172a;\n  -webkit-box-decoration-break: clone;\n  box-decoration-break: clone;\n  cursor: pointer;\n  transition: color 0.25s ease, text-shadow 0.25s ease;\n}\n\n.spoiler-blur:hover,\n.spoiler-blur:focus {\n  color: inherit;\n  text-shadow: none;\n}\n\n.spoiler-blur:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}",
  "features": [
    "transitions",
    "text shadows",
    "keyboard focus styles"
  ],
  "customProperties": []
}
