HTML CSS examples for CSS:Animation
Show list item one by one with animation
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div {<!-- w w w .j a v a 2 s . c om--> color:Chartreuse; text-transform:uppercase; } .text1 { -webkit-animation:text 3s .6s forwards; -moz-animation:text 3s .6s forwards; -o-animation:text 3s .6s forwards; animation:text 3s .6s forwards; } .text2 { -webkit-animation:text 3s 2s forwards; -moz-animation:text 3s 2s forwards; -o-animation:text 3s 2s forwards; animation:text 3s 2s forwards; } .text3 { -webkit-animation:text 3s 2.6s forwards; -moz-animation:text 3s 2.6s forwards; -o-animation:text 3s 2.6s forwards; animation:text 3s 2.6s forwards; } .text4 { -webkit-animation:text 3s 3s forwards; -moz-animation:text 3s 3s forwards; -o-animation:text 3s 3s forwards; animation:text 3s 3s forwards; } @-webkit-keyframes text { 100% { color:yellow; } } @-moz-keyframes text { 100% { color:blue; } } @-o-keyframes text { 100% { color:pink; } } @keyframes text { 100% { color:WhiteSmoke; } } </style> </head> <body> <div class="text1"> Expert Electricians. </div> <div class="text2"> Serving all of Los Angeles, </div> <div class="text3"> Ventura and Orange Counties </div> <div class="text4"> For over 20 years </div> </body> </html>