Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS letter-spacing Property Animation</title> <style> .animated { padding: 40px 0; font: bold 46px sans-serif; text-align: center; background: #f0e68c; border: 1px solid #938613; -webkit-animation: test 4s infinite; /* Chrome, Safari, Opera */ animation: test 4s infinite; } /* Chrome, Safari, Opera */ @-webkit-keyframes test { 50% {letter-spacing: 10px;} } /* Standard syntax */ @keyframes test { 50% {letter-spacing: 10px;} } </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 letter-spacing of the following paragraph is animating from its initial value "normal" to "10px", and back to the initial value "normal" again up to infinite times.<p> <div class="animated">Letter Spacing</div> </body> </html>