jQuery Easing in Chrome has a flicekring effect -
i using following script smooth easing effect navigate top/bottom within same page. got implemented in various browsers, when animation starts in chrome, page flickers. page goes top when clicked in flash , allows page execute animation.
is there possibility rid off flickering effect in chrome?
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script> <script type="text/javascript"> $(function() { $('a').bind('click',function(event){ var $anchor = $(this); $('html, body').stop().animate({ scrolltop: $($anchor.attr('href')).offset().top }, 1500,'easeinoutquad'); /* if don't want use easing effects: $('html, body').stop().animate({ scrolltop: $($anchor.attr('href')).offset().top }, 1000); */ event.preventdefault(); }); });
Comments
Post a Comment