Prev Demo
CSS3
>
Moving Left With Keyframe Animation
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title></title> <style> h1 { /*for chrome and safari*/ -webkit-animation-duration: 3s; -webkit-animation-name: slidein; /*for firefox*/ -moz-animation-duration: 3s; -moz-animation-name: slidein; /*for opera*/ -o-animation-duration: 3s; -o-animation-name: slidein; /*Standard syntax*/ animation-duration: 3s; animation-name: slidein; } @-webkit-keyframes slidein { from { margin-left: 80%; width: 300%; color: green; } 50% { font-size: 1000%; margin-left: 25%; width: 150%; color: blue; } to { margin-left: 30%; width: 100%; color: yellow; } } @-moz-keyframes slidein { from { margin-left: 80%; width: 300%; color: green; } 50% { font-size: 1000%; margin-left: 25%; width: 150%; color: blue; } to { margin-left: 30%; width: 100%; color: yellow; } } @-o-keyframes slidein { from { margin-left: 80%; width: 300%; color: green; } 50% { font-size: 1000%; margin-left: 25%; width: 150%; color: blue; } to { margin-left: 30%; width: 100%; color: yellow; } } @keyframes slidein { from { margin-left: 80%; width: 300%; color: green; } 50% { font-size: 1000%; margin-left: 25%; width: 150%; color: blue; } to { margin-left: 30%; width: 100%; color: yellow; } } </style> </head> <body> <p><i>Animation with extra keyframe animation</i></p> <h1>TechFunda</h1> <button onclick="myFunction()">Reload page</button> <script> function myFunction() { location.reload(); } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output