Skip to content

Typewriter Effect

Classic typewriter typing with a blinking caret, cycling through phrases for a dynamic hero subtitle.

Typewriter Effect

by FreeCsStyles Dev's

TypographyRetro
🌐
#typewriter#typing#caret#terminal

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/typewriter-effect.

<iframe src="/embed/typewriter-effect" sandbox="allow-scripts" loading="lazy" title="Typewriter Effect" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Typewriter Effect. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<div class="terminal-line">
  <span class="prompt">➜</span> ~ $ whoami
</div>
<div class="typewriter">
  <span class="type-text">Creative Developer</span>
  <span class="caret"></span>
</div>
CSS
.terminal-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.prompt { color: #22c55e; font-weight: 700; }

.typewriter {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  min-height: 32px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 22px;
  margin-left: 3px;
  vertical-align: middle;
  background: #8b5cf6;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

Where Typewriter Effect fits

  • Hero Subtitles
  • Terminal Prompts
  • Chat UIs

Topics

  • #typewriter
  • #typing
  • #caret
  • #terminal