HTML CSS examples for CSS Widget:Hover Animation
Circle around div when hover
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .sun {<!--from ww w .j a v a 2s .c om--> background-color:Chartreuse; height:81px; width:81px; box-sizing:border-box; border-radius:51%; box-shadow:0 0 0 4px yellow inset; border:0 solid blue; transition:border-width 0.4s linear; } .sun:hover { border-width:4px; } </style> </head> <body> <div class="sun"></div> </body> </html>