html - I want a glow effect on a div on hover with jQuery -
i want glow effect on div on hover jquery. here's code:
html
<div class="tablerow"> <div class="image"> <img src="1.jpg"> </div> <div class="info"> <p> <span class="heading">the pursuit of happyness</span><br> <span class="sub">inspired true story.</span><br> <span class="data">chris gardener finds "i" in happiness...</span><p> </div> </div>
css
.tablerow{ width:100%; height:185px; padding:0; }
i have 8 more divs class tablerow on want glow effect(not shadow) on hover jquery, needs that. (i have used css tables).
you can accomplish using css. use inset box shadow on hover (or click devices) , change color whatever yellow/gold or other color want display. can use normal box shadow glow/shadows want outside box
element { box-shadow:none; } element:hover, element:active { box-shadow: inset 0 0 10px #(color of glow want); }
this gets shadow inside , outside
element { box-shadow:none; } element:hover, element:active { box-shadow: 0 0 5px #(color), inset 0 0 10px #(color of glow want); }
Comments
Post a Comment