jquery 或动画 png/gif 哪个更适合网页上的图像动画?

发布于 2024-10-13 03:24:25 字数 240 浏览 8 评论 0原文

使用动画 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

方觉久 2024-10-20 03:24:25

如果速度是问题,请使用 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文