有没有办法隐藏使用jQuery动画时出现在webkit浏览器中的工件? [英] Is there a way to hide the artifacts that show up in webkit browsers when using jQuery animate?

查看:67
本文介绍了有没有办法隐藏使用jQuery动画时出现在webkit浏览器中的工件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQuery动画来滑动网页上的项目。出于某种原因,仅在webkit浏览器中,元素被动画化的空间中存在一系列工件。有没有办法阻止它发生或隐藏它?

I am using jQuery animate to slide in items on a web page. For some reason, only in webkit browsers, there is a trail of artifacts across the space the element was animated over. Is there a way to stop this from happening or hide it?

一旦你在这里加载页面,它们就会出现在旋转木马上: http://www.mywebclass.org/~jeff/

They are seen on the carousel once you load the page here: http://www.mywebclass.org/~jeff/

推荐答案

在你的动画回调中,向下滚动1px然后向上滚动1px:

In your animate callback, scroll down 1px then back up 1px:

$(this).addClass('active');
scrollTo(document.body.scrollLeft, document.body.scrollTop + 1);
scrollTo(document.body.scrollLeft, document.body.scrollTop - 1);

这篇关于有没有办法隐藏使用jQuery动画时出现在webkit浏览器中的工件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆