HTML CSS examples for CSS Animatable Property:letter-spacing
In the following code 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.
-webkit- prefix is for Chrome, Safari, Opera.
-moz- prefix is for Firefox.
<!DOCTYPE html> <html lang="en"> <head> <title>Example of CSS letter-spacing Property Animation</title> <style type="text/css"> .animated {<!-- www .j ava 2 s. c om--> padding: 40px 0; font: bold 50px sans-serif; text-align: center; background: #EEEEEE; border: 1px solid red; -webkit-animation: test 4s infinite; animation: test 4s infinite; } @-webkit-keyframes test { 50% {letter-spacing: 10px;} } @keyframes test { 50% {letter-spacing: 10px;} } </style> </head> <body> <p> </p> <div class="animated"> Letter Spacing </div> </body> </html>