Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
CSS3 Examples
Keywords : CSS3 example with live demo, Animation effect in css3 with live example, Simple css3 examples with source code
Example
<!DOCTYPE html> <html> <head> <style> #animationdiv { width: 100px; height: 100px; background-color: red; position: relative; -webkit-animation: myfirst 5s linear 2s infinite alternate; /* Chrome, Safari, Opera */ animation: myfirst 5s linear 2s infinite alternate; } /* Define Animation properties */ @keyframes myfirst { 0% {background-color:red; left:0px; top:0px;} 25% {background-color:black; left:200px; top:0px;} 50% {background-color:pink; left:200px; top:200px;} 75% {background-color:green; left:0px; top:200px;} 100% {background-color:red; left:0px; top:0px;} } </style> </head> <body> <p><b>Note:</b> This demo will not work in internet explorer (IE9 & Less versions)</p> <div id="animationdiv"></div> </body> </html>
Click Here to See Result
Result