{
  "id": "block-reveal-text",
  "name": "Block Reveal Text",
  "category": "text",
  "tags": [
    "wipe",
    "clip-path",
    "entrance",
    "editorial",
    "headline"
  ],
  "description": "A solid color block wipes across the headline, then pulls away to reveal the text underneath.",
  "url": "https://copy-css.com/snippets/block-reveal-text",
  "markdown": "https://copy-css.com/snippets/block-reveal-text.md",
  "html": "<h2 class=\"text-wipe\">New collection</h2>",
  "css": ".text-wipe {\n  position: relative;\n  display: inline-block;\n  margin: 0;\n  color: #881337;\n  font: 800 34px/1.15 system-ui, sans-serif;\n  animation: text-wipe-text 1.2s steps(1, start) both;\n}\n\n.text-wipe::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: #f43f5e;\n  animation: text-wipe-block 1.2s cubic-bezier(0.7, 0, 0.3, 1) both;\n}\n\n@keyframes text-wipe-block {\n  0% { clip-path: inset(0 100% 0 0); }\n  50% { clip-path: inset(0); }\n  100% { clip-path: inset(0 0 0 100%); }\n}\n\n@keyframes text-wipe-text {\n  0%, 50% { color: transparent; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-wipe,\n  .text-wipe::after { animation: none; }\n\n  .text-wipe::after { display: none; }\n}",
  "features": [
    "keyframe animations",
    "clip paths",
    "reduced-motion support"
  ],
  "customProperties": []
}
