HTML CSS examples for CSS Animatable Property:outline-width
In the following code the outline-width property of the div element is animating from its initial value "5px" to the "50px", and back to the initial value "5px" 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 outline-width Property Animation</title> <style type="text/css"> .animated {<!--from w w w.j ava 2 s. c o m--> width: 200px; padding: 60px 0; margin: 100px; font: bold 50px sans-serif; background: #e6e6fa; outline: 5px solid #7d7de6; text-align: center; -webkit-animation: test 4s infinite; animation: test 4s infinite; } @-webkit-keyframes test { 50% {outline-width: 50px;} } @keyframes test { 50% {outline-width: 50px;} } </style> </head> <body> <p> </p> <div class="animated"> Box </div> </body> </html>