HTML CSS examples for CSS Animatable Property:word-spacing
In the following code the word-spacing property of the following paragraph element is animating from its initial value "normal" to the "50px", 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 word-spacing Property Animation</title> <style type="text/css"> .animated {<!--from w w w. ja va 2 s . co m--> 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% {word-spacing: 100px;} } @keyframes test { 50% {word-spacing: 100px;} } </style> </head> <body> <p> </p> <div class="animated"> Word Spacing </div> </body> </html>