{
  "id": "terminal-typing",
  "name": "Terminal Typing",
  "category": "text",
  "tags": [
    "command line",
    "typing",
    "block caret",
    "developer",
    "code",
    "shell"
  ],
  "description": "A dark terminal window that types a command with a block caret, then prints the output line.",
  "url": "https://copy-css.com/snippets/terminal-typing",
  "markdown": "https://copy-css.com/snippets/terminal-typing.md",
  "html": "<div class=\"term-typing\">\n  <p class=\"term-typing-line\"><span class=\"term-typing-cmd\">npm i copycss</span></p>\n  <p class=\"term-typing-out\">added 1 package in 0.4s</p>\n</div>",
  "css": ".term-typing {\n  box-sizing: border-box;\n  width: 250px;\n  max-width: 100%;\n  padding: 16px 18px;\n  border-radius: 10px;\n  background: #0f172a;\n  color: #e2e8f0;\n  font: 500 14px/1.7 ui-monospace, Menlo, monospace;\n  box-shadow: 0 12px 30px #0f172a40;\n}\n\n.term-typing p {\n  margin: 0;\n}\n\n.term-typing-line::before {\n  content: \"$ \";\n  color: #4ade80;\n}\n\n/* Width in ch = number of characters in the command */\n.term-typing-cmd {\n  display: inline-block;\n  width: 13ch;\n  overflow: hidden;\n  white-space: nowrap;\n  vertical-align: bottom;\n  animation: term-typing-type 1.3s 0.4s steps(13) both;\n}\n\n.term-typing-line::after {\n  content: \"\";\n  display: inline-block;\n  width: 0.6em;\n  height: 1.15em;\n  vertical-align: -0.2em;\n  background: #4ade80;\n  animation: term-typing-blink 1s step-end infinite;\n}\n\n.term-typing-out {\n  color: #94a3b8;\n  animation: term-typing-show 0.2s 2s both;\n}\n\n@keyframes term-typing-type {\n  from { width: 0; }\n}\n\n@keyframes term-typing-blink {\n  50% { opacity: 0; }\n}\n\n@keyframes term-typing-show {\n  from { opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .term-typing-cmd,\n  .term-typing-out,\n  .term-typing-line::after { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "box shadows",
    "reduced-motion support"
  ],
  "customProperties": []
}
