jquery 或动画 png/gif 哪个更适合网页上的图像动画?
使用动画 gif/png 或 jquery 来实现非常快速的图像动画会更好吗?由于缺乏 iPhone/iPad 支持,因此无法选择 Flash。
我必须在主页上添加一排闪烁的蜡烛(我知道这是一个坏主意,但他们想要一个 5 秒的动画启动屏幕,所以这是一个妥协)。图像大约为 600 x 200 像素,并且需要快速以防止火焰“闪烁”。
我只使用jquery来淡入淡出图像,所以我不知道它是否适合这个?
欢迎任何建议,谢谢!
Would it be better to use an animated gif/png or jquery for very fast image animation? Flash is not an option because of lack of iPhone/iPad support.
I have to add a row of flickering candles to a homepage (I know its a bad idea, but they wanted a 5-second animated splash screen so its a compromise). The image is approx 600 x 200px, and needs to be quick for the flame "flicker".
I have only used jquery for fading images so I don't know if it is suitable for this?
Any advise welcome, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果速度是问题,请使用 gif 动画。 5 秒后使用 jQuery 将动画替换为静态图像(在 gif 动画运行时预加载图像,以便在交换过程中不会出现延迟)。
If speed is the issue, go with an animated gif. Use jQuery to swap out the animation with a static image after 5 seconds (preload the image while the gif animation is running so there is no delay during the swapping).