旋转一组图像
我正在尝试为我正在开发的网站的一部分设置“旋转图像”。我已经为单个项目拍摄了很多照片(30+),并且我想将它们显示为旋转的 3D 图像(具有可能的可拖动速度)。
我采取的一种方法是将其设置为 CSS 背景,并每 0.1 秒循环一次图像。它工作正常,但它会疯狂地闪烁,直到图像完成完整旋转(我假设这是因为图像尚未缓存)
有人实现了类似的东西或有建议吗?
非常感谢。
I am trying to setup a "rotating image" for part of a site I am working on. I have taken many photos of a single item (30+), and I want to display them like it is a rotating 3D image (with a possible draggable speed).
One approach I have taken is setting it as a CSS background, and looping through the images every 0.1s. It works alright, but it flickers like crazy until the image has done a full rotation (I am assuming this is because the image is not yet cached)
Has anyone implemented something similar or have a suggestion?
Much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
jQuery Cycle 是一个令人惊奇的多功能、轻量级 jQuery 插件。
http://jquery.malsup.com/cycle/
jQuery Cycle is an amazingly versatile, light-weight, jQuery plugin.
http://jquery.malsup.com/cycle/