CSS3 Ken Burn 效果在页面滚动时暂停,然后再次播放以获得流畅的动画
我在社区中其他人的帮助下构建了 CSS3 Ken Burn 效果。在我们切换到翻译动画之前,它一直很不稳定。现在很顺利。
现在的问题是,当页面滚动时在触摸屏设备上,它会变得不稳定。据推测,这是由于所需的额外处理能力。
我认为解决方案是暂停滚动动画,然后在滚动完成后再次播放。我不知道如何做到这一点。我也很高兴听到有关此事的任何其他建议。
上面的小提琴将向您展示它的所有功能。目前仅支持 WebKit。
有什么想法吗?
奇妙
I have built a CSS3 Ken Burn effect with the aid of others in this community. It was jerky until we switched to a translating animation. Now it is very smooth.
The problem now is that when the page is scrolled on a touch screen device, it then becomes jerky. Presumably this is from the additional processing power required.
I think the solution would be to pause the animation on scroll and then play again after scroll has complete. I do not know how to accomplish this. I'd also enjoy hearing any other suggestions on the matter.
The fiddle above will show you it all functional. WebKit only at the moment.
Any ideas?
Marvellous
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了一些闪烁和不稳定的动画问题,这一点修复了它:
I had some issues with flickering and jerky animations and this bit fixed it up: