{
  "id": "blinking-cursor-text",
  "name": "Blinking Text Cursor",
  "category": "text",
  "tags": [
    "caret",
    "blink",
    "hero",
    "terminal",
    "pseudo-element"
  ],
  "description": "A thin blinking caret after any heading or line of text, sized in em so it scales with the font.",
  "url": "https://copy-css.com/snippets/blinking-cursor-text",
  "markdown": "https://copy-css.com/snippets/blinking-cursor-text.md",
  "html": "<h2 class=\"text-cursor\">Hi, I build websites</h2>",
  "css": ".text-cursor {\n  max-width: 11em;\n  margin: 0;\n  color: #0f172a;\n  font: 800 30px/1.2 system-ui, sans-serif;\n}\n\n.text-cursor::after {\n  content: \"\";\n  display: inline-block;\n  width: 0.08em;\n  height: 1em;\n  margin-left: 0.1em;\n  vertical-align: -0.12em;\n  background: #2563eb;\n  animation: text-cursor-blink 1s step-end infinite;\n}\n\n@keyframes text-cursor-blink {\n  50% { opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-cursor::after { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "reduced-motion support"
  ],
  "customProperties": []
}
