Getting glow effect in CSS

by guruprasad 2014-03-13 10:17:35

To get the glowing effect on hover:
Example,
<html>
<head>
<title>Glow effect</title>
<style>
#ex5
{
width: 700px;
margin: 0 auto;
min-height:
300px;
}

#ex5 img
{ margin: 25px; opacity: 0.8; border: 10px solid #eee;

/*Transition*/
-webkit-transition: all 0.5s ease; -moz-transition: all 0.5s ease; -o-transition: all 0.5s ease;

/*Reflection*/
-webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.1)));

}
#ex5 img:hover
{
opacity: 1;
/*Reflection*/
-webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(.7, transparent), to(rgba(0,0,0,0.4)));
/*Glow*/
-webkit-box-shadow: 0px 0px 20px rgba(255,255,255,0.Cool
; -moz-box-shadow: 0px 0px 20px rgba(255,255,255,0.Cool
; box-shadow: 0px 0px 20px rgba(255,255,255,0.Cool
;

}
</style>
</head>
<body bgcolor='black'>
<div id='ex5'>
<img src='HughJackman.jpg'/>

</div>
</body>
</html>



Supports all types modern browsers.


Sample Image Used:
HughJackman.jpg
516
like
0
dislike
0
mail
flag

You must LOGIN to add comments