HTML CSS examples for CSS Animatable Property:border-top-right-radius
In the following code the border radius of the top-right corner of the div element is animating from its initial value "0" to "80px", and back to the initial value "0" 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 CSS3 border-top-right-radius Property Animation</title> <style type="text/css"> .animated {<!--from ww w. j a v a 2s . c o m--> width: 300px; padding: 40px 0; font: bold 50px sans-serif; text-align: center; background: #EEEEEE; border: 2px solid red; -webkit-animation: test 4s infinite; animation: test 4s infinite; } @-webkit-keyframes test { 50% {border-top-right-radius: 80px;} } @keyframes test { 50% {border-top-right-radius: 80px;} } </style> </head> <body> <p> </p> <div class="animated"> Box </div> </body> </html>