HTML CSS examples for CSS Animatable Property:box-shadow
Smooth Animation in box shadow
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #CortonaRing1 {<!--from w w w .j ava 2 s .com--> border-radius: 50%; animation-duration: 3s; animation-name: Cortona; animation-iteration-count: infinite; background-color: transparent; color: #FFF; margin: 30px; float: left; width: 250px; min-width: 250px; max-width: 250px; height: 250px; min-height: 250px; max-height: 250px; } @keyframes Cortona { 0% { box-shadow: 0px 0px 1px 30px #000; } 50% { box-shadow: 0px 0px 1px 25px #000; } 100% { box-shadow: 0px 0px 1px 30px #000; } } </style> </head> <body> <div name="CortanaRing1" id="CortonaRing1" class="CortonaRing1"> </div> </body> </html>