HTML CSS examples for CSS Widget:Image Shadow
Add a mouseover drop shadow effect for circular images
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!-- ww w .j a v a 2 s .c om--> background:Chartreuse; } div { background:url('https://www.java2s.com/style/demo/Google-Chrome.png') 51% 51%; background-size:100%; border:8px solid yellow; width:151px; height:151px; -webkit-border-radius:83px; border-radius:83px; opacity:0.8; -webkit-transition:-webkit-box-shadow 0.6s ease-out, opacity 0.6s ease-out; -moz-transition:-moz-box-shadow 0.6s ease-out, opacity 0.6s ease-out; transition:box-shadow 0.6s ease-out, opacity 0.6s ease-out; } div:hover { -webkit-box-shadow:3px 13px 11px blue; -moz-box-shadow:3px 13px 11px pink; box-shadow:3px 13px 11px OrangeRed; opacity:2; cursor:pointer; } </style> </head> <body> <div></div> </body> </html>