{
  "id": "text-reveal",
  "name": "Line Reveal",
  "category": "text",
  "tags": [
    "reveal",
    "slide up",
    "headline",
    "mask",
    "entrance",
    "animation"
  ],
  "description": "A headline whose lines slide up from behind an invisible mask, one after another.",
  "url": "https://copy-css.com/snippets/text-reveal",
  "markdown": "https://copy-css.com/snippets/text-reveal.md",
  "html": "<h2 class=\"reveal\">\n  <span><span>Design that</span></span>\n  <span><span>feels effortless</span></span>\n</h2>",
  "css": ".reveal {\n  margin: 0;\n  color: #0f172a;\n  font: 800 30px/1.15 system-ui, sans-serif;\n}\n\n/* Each line clips its own text */\n.reveal > span {\n  display: block;\n  overflow: hidden;\n}\n\n.reveal > span > span {\n  display: block;\n  animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;\n}\n\n.reveal > span:nth-child(2) > span {\n  animation-delay: 0.12s;\n}\n\n@keyframes reveal-up {\n  from { transform: translateY(110%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .reveal > span > span { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "reduced-motion support"
  ],
  "customProperties": []
}
