{
  "id": "typewriter-text",
  "name": "Typewriter Text",
  "category": "text",
  "tags": [
    "typewriter",
    "typing",
    "animation",
    "caret",
    "monospace"
  ],
  "description": "Text that types itself out with a blinking caret, using only CSS.",
  "url": "https://copy-css.com/snippets/typewriter-text",
  "markdown": "https://copy-css.com/snippets/typewriter-text.md",
  "html": "<p class=\"typewriter\">Hello, world!</p>",
  "css": "/* Set width and steps() to the number of characters */\n.typewriter {\n  width: 13ch;\n  margin: 0;\n  overflow: hidden;\n  white-space: nowrap;\n  border-right: 3px solid #111;\n  font: 600 24px/1.3 ui-monospace, Menlo, monospace;\n  animation:\n    typewriter-type 2.5s steps(13) infinite alternate,\n    typewriter-caret 0.7s step-end infinite;\n}\n\n@keyframes typewriter-type {\n  from { width: 0; }\n}\n\n@keyframes typewriter-caret {\n  50% { border-color: transparent; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .typewriter {\n    animation: none;\n  }\n}",
  "features": [
    "keyframe animations",
    "reduced-motion support"
  ],
  "customProperties": []
}
