Ajax Loader
HTML
<!--Hi folks, I'm goping to write code for typing animation  -->
1
<!--Hi folks, I'm goping to write code for typing animation  -->
2
<p>hello world, this is typing animation powered with CSS<span>|</span></p>
3
<!-- This is the text we are going to animate, so let's style animation-->
 
CSS
/* At first let's give some style*/
1
/* At first let's give some style*/
2
body{
3
  background: #000;
4
  color: lime;
5
}
6
 
7
/* font-size, positioning, visibility*/
8
p{
9
  font-size: 14px;
10
  margin: 30px;
11
  white-space:nowrap;
12
  overflow: hidden;
13
  width: 30em;
14
  animation: type 5s steps(50, end) 1;  
15
}
16
 
17
/* let's animate, it's super easy */
18
@keyframes type{
19
  from{ width: 0;}
20
}
21
/*looks like something is wrong, Fixed!!! */
22
 
23
/*let's make it more realistic, so I added span tag, let's animate span*/
24
span{
25
  animation: blink 1s infinite;
26
}
27
 
28
@keyframes blink{
29
  to{ opacity: .0;}
30
}
31
 
32
/*That's it. Enjoy!!! :) */
33
 
34
 
35
 
36
 
 

Typing animation

CSSDeck G+