html - Divs jitter when hovering between them quickly -
i have following html code:
<div class="project"> <h3 class="black product">dash</h3> <a href="#" class="black hide">view project</a> </div> <div class="project"> <h3 class="black product">5/3/1</h3> <a href="#" class="black hide">view project</a> </div>
and following css code:
.hide { display: none; } div.project:hover h3{ line-height: 200px; } div.project:hover .hide { display: inline-block; } div.project { display: inline-block; position: relative; overflow: hidden; width: 300px; height: 300px; border: 2px solid #222; margin: 0px 20px 20px 20px; } h3.product { font-size: 24px; line-height: 300px;}
which 2 div buttons side side. when hover on each div product title moves , "view product" text appears.
however when hover between 2 divs "jitter" , down, , stay "jittered". have seen, occurs in safari not in chrome.
http://jsfiddle.net/f8laktoz/ here jsfiddle.
this first time asking question, let me know if can more specific. appreciated! in advance.
its seems bug way divs 'displacing' each other on hover.
try adding css:
div.project { ... float: left; }
working js fiddle: http://jsfiddle.net/f8laktoz/1/
Comments
Post a Comment