Fixed elements are jerky in Safari when using jQuery .scrollTop()

Alright, here’s the site in question: http://abramobile.com

If you scroll down the page past the slider area (or click one of the tabs at the top), you get to the content part. At the point, this “back to top” arrow fades in to the top right corner. I’m using jQuery scrollTop() with a .click() event to take the user back to the top of the page. I’m also using position:fixed; to get the element to stay in the same place as it scrolls.

The problem is in safari
that when you click it to go back to the top, it gets all jerky and flashes in and out as the page scrolls up. There’s also a fadeTo(200,0) going on to fade the up arrow back out when you scroll back to the navigation area.

Is there some CSS I can apply that will prevent this jerkyness? If not, is there another way to accomplish what I’m trying to do?

Thanks!

UPDATE: Jerkyness not present in Safari 5.0.5. Could someone verify it in Safari 5.1.x?

Problem courtesy of: alt

稿源:CSS3 Recipes (源链) | 关于 | 阅读提示

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 前端开发 » Fixed elements are jerky in Safari when using jQuery .scrollTop()

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录