Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS3 text-shadow Property Animation</title> <style> h1 { font: bold 46px sans-serif; text-shadow: 2px 2px 4px #000; -webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */ animation: test 4s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes test { 50% {text-shadow: 6px 6px 12px #000;} } /* Standard syntax */ @keyframes test { 50% {text-shadow: 6px 6px 12px #000;} } </style> </head> <body> <p><strong>Warning:</strong> CSS Animations do not work in Internet Explorer 9 and earlier versions.</p> <p><strong>Note:</strong> The text-shadow property of the following heading element is animating from its initial value "2px 2px 4px #000" to "6px 6px 12px #000", and back to the initial value "2px 2px 4px #000" again up to infinite times.<p> <h1>Text Shadow Animation</h1> </body> </html>