开发者

IE fails once again, jQuery scroll vibrating heavily

I'm using jQuery's scrollTop and scrollLeft to scroll on a website. Everything works perfectly in Chrome and Firefox, but in IE9 the screen vibrates like crazy when scrolling.

This i开发者_如何学Cs my code for scrolling:

$('body').animate({
    scrollTop: '1980px',
    scrollLeft: '500px'
}, 800, 'swing');

I've also tried using animate on $(window), $('html') and $('html, body'), no effect.

You can view the live website here: webvalid.nl/thomas

Has anyone had similar problems? I couldn't anything googling... Thanks in advance!


This isn't the solution you are looking for but you could always use: http://www.dyn-web.com/code/scroll/

I thought this might work because there is no easing, and it looks to me this could be done by scrolling a div and doing the animation separately on the left.

sorry if im no help...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜