{
  "id": "letter-stagger-reveal",
  "name": "Staggered Letter Reveal",
  "category": "text",
  "tags": [
    "letters",
    "stagger",
    "entrance",
    "hero",
    "custom properties"
  ],
  "description": "Each letter of a headline rises into place one after another, staggered with a custom property.",
  "url": "https://copy-css.com/snippets/letter-stagger-reveal",
  "markdown": "https://copy-css.com/snippets/letter-stagger-reveal.md",
  "html": "<h2 class=\"text-stagger\">\n  <span class=\"text-stagger-sr\">Welcome</span>\n  <span aria-hidden=\"true\"><span style=\"--i: 0\">W</span><span style=\"--i: 1\">e</span><span style=\"--i: 2\">l</span><span style=\"--i: 3\">c</span><span style=\"--i: 4\">o</span><span style=\"--i: 5\">m</span><span style=\"--i: 6\">e</span></span>\n</h2>",
  "css": ".text-stagger {\n  margin: 0;\n  color: #312e81;\n  font: 800 46px/1.1 system-ui, sans-serif;\n}\n\n/* Full word for screen readers, letters are hidden from them */\n.text-stagger-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.text-stagger span span {\n  display: inline-block;\n  animation: text-stagger-in 0.6s calc(var(--i) * 70ms) cubic-bezier(0.2, 0.8, 0.2, 1.2) both;\n}\n\n@keyframes text-stagger-in {\n  from {\n    opacity: 0;\n    transform: translateY(0.5em) rotate(8deg);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-stagger span span { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "clip paths",
    "custom properties",
    "reduced-motion support"
  ],
  "customProperties": []
}
