jQuery animate, not smooth

余生长醉 提交于 2019-12-22 10:26:56

问题


do you have an idea, how the animated cats could move smoother?

It's stuttering and I don't know how to set it smoother. jQuery.fx.interval isn't helping

http://christianhaller.com/jquery-animate-img.html

thx, christian


回答1:


The stuttering appears to be because of the easing, since you are moving the image a very small amount and small changes are obvious. Just set the easing parameter of the animation to linear.




回答2:


From the CrossSlide jQuery plugin developer:

It also bears to mention that CSS and DOM force a script to round position and size of images to integer pixel values, for every frame of an animation, not just keyframes. This effectively makes it impossible to achieve slow, smooth animations. If you are experiencing this issue, my only advice is to either make the animation faster, do away with diagonal panning and/or image zooming, or switch to a different animation technology.

I believe that applies here as well. Hope that helps.



来源:https://stackoverflow.com/questions/5696524/jquery-animate-not-smooth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!