Kemarin saya buat tutorial cara membuat Page redirrect menggunakan jquery , sekarang saya akan membuat Typing Animation dengan Pure CSS , tetapi masih tetap menggunakan jsfiddle.net . Ok langsung aja kita mulai .
1. Pertama - tama rubah choose Framework nya, buat menjadi No-Library (pure JS)
HTML
<h1>Typing animation by Lea Verou.<span> </span></h1>
CSS
@-webkit-keyframes typing {
from { width: 100% }
to { width:0 }
}
@-webkit-keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: black }
}
@-moz-keyframes typing {
from { width: 100% }
to { width:0 }
}
@-moz-keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: black }
}
body { font-family: Consolas, monospace; }
h1 {
position: relative;
float: left;
font-size:150%;
}
h1 span {
position:absolute;
top:0;
right:0;
width:0;
background: white; /* same as background */
border-left: .1em solid black;
-moz-box-sizing: border-box;
box-sizing: border-box;
-webkit-animation: typing 17s steps(30, end), /* # of steps = # of characters */
blink-caret 1s step-end infinite;
-moz-animation: typing 17s steps(30, end), /* # of steps = # of characters */
blink-caret 1s step-end infinite;
}
Example : http://jsfiddle.net/phantom/Df6dZ/
Jika ingin Mengcopy Artikel ini tolong sertakan Link sumber nya , dan Follow blog ini. Terima Kasih
.gif)
.gif)







0 Responses So Far: