Frontend Blocks css Intermediate New

CSS Typing Animation

Pure CSS typewriter animation with a blinking cursor — no JavaScript needed.

css
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid #22c55e;
  width: 0;
  animation:
    typing 3s steps(30, end) forwards,
    blink  0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to   { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

Prerequisites

  • Modern browser

Pro Tips

  • → Adjust steps(30) to match your text character count.

Was this module useful?

Share your experience — it helps the team improve.

Leave Feedback

Commercial Licensing

Acquire a production access token or template license for enterprise deployment.

Module Info

Language
css
Level
Intermediate
Read time
2 min
Published
Aug 2026
License
Commercial License

Newsletter

New modules every week, directly to your inbox.