css - IE flickers when hovering a revealed element -


im having worse time trying make markup solution revealing social media buttons. have 2 placeholder buttons facebook , twitter, , want set when user hovers on placeholder, fades out , share buttons fade in.

now, have working fine in browsers, of course, ie (every version) doesnt it. while buttons fade in, mouse movement causes them flicker, ie cant decide if mouse still on hovered element or not.

here mean:

http://jsfiddle.net/ckkxf/

and code doesnt want leave stack:

   <div class="share-buttons-wrapper">       <div class="buttons-wrapper">         <div class="facebook share-button">f</div>         <div class="twitter share-button">t</div>         <div class="rendered-buttons">             <div class="fb-like" data-send="false" data-width="450" data-show-faces="false"></div>             <a href="https://twitter.com/share" class="twitter-share-button"></a>         </div>       </div>     </div>  .share-buttons-wrapper{     float:left;     border-left:1px solid #dfdfdf;     height:75px;     width:55px;     padding-left:20px;     position:relative; }       .share-buttons-wrapper > .buttons-wrapper     {         cursor:pointer;  (function(d, s, id) {   var js, fjs = d.getelementsbytagname(s)[0];   if (d.getelementbyid(id)) return;   js = d.createelement(s); js.id = id;   js.src = "//connect.facebook.net/en_us/all.js#xfbml=1&appid=196749420435782";   fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk'));!function(d,s,id){var js,fjs=d.getelementsbytagname(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getelementbyid(id)){js=d.createelement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentnode.insertbefore(js,fjs);}}(document, 'script', 'twitter-wjs'); 

i lose on here. how can make work?

also - tried jquery because frustrated seems moving mouse share buttons (which iframes) broke it. guess js seems contents of iframe outside hovered element? dunno.

adding script seems fix it. http://jsfiddle.net/david_knowles/smeqd/

$(".buttons-wrapper").hover(     function () { $(".rendered-buttons").css("visibility","visible");     },     function () { $(".rendered-buttons").css("visibility","hidden");     } ); 

js bubbling can handy


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -