HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> h2 { color: blue; -webkit-animation: myMultiColor 1s infinite; animation: myMultiColor 1s infinite; } /* Safari 4.0 - 8.0 */ @-webkit-keyframes myMultiColor { from {color: blue;} to {color: green;} } /* Standard syntax */ @keyframes myMultiColor { from {color: blue;} to {color: green;} } </style> </head> <body> <h2 onanimationstart="myFunction(event)">Animation is Awesome</h2> <p id="point"></p> <script> function myFunction(e) { var txt = "Animation name is: " + e.animationName document.getElementById("point").innerHTML = txt; } </script> </body> </html>
OUTPUT
×

Save as Private