dot dot - 1 year ago 150
CSS Question

How to fade in / reveal one letter at a time?

When my web page loads, using css, I want the text "widget world" to appear across the top as if someone were writing it manually; one letter at a time would appear.

I'm going to use a cursive font. There would be a few milliseconds delay in between each letter appearing.

I thought to make each letter a separate div then fade them in one by one.

Answer Source

Here's a snippet for something that you are looking for.

  color: Pink; 
  font-family: "Courier";
  font-size: 20px;
  margin: 10px 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  width: 30em;
  animation: type 4s steps(60, end); 

@keyframes type{ 
  from { width: 0; } 
<p>Hi folks, this is typing animation using CSS</p>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download