在 Safari 中通过 css 使用图像实现图像翻转闪烁

发布于 2024-09-09 10:09:58 字数 193 浏览 0 评论 0原文

我有一个图像相当多的网站,并且页面上的许多图像上都有图像翻转(:悬停)。页面会加载,但滚动图像需要更长的时间才能加载,并且当用户最初滚动图像时会导致闪烁。我知道这个问题已经讨论过很多次了,但我还没有找到合适的解决方案。

我使用的是 safari,背景翻转是通过 css 完成的。需要某种悬停图像预加载器或延迟脚本或类似的但欢迎任何建议

谢谢

I have a fairly image heavy site and have image rollovers (:hover) on a lot of images on the page. The page loads but the rollovers images take longer to load and cause a flickering when the user intially rolls over the image. I know that this issue has been disscussed many times however I have not found an appropriate solution that works.

I am using safari, background rollovers are done through css. Need some kind of hover image preloader or delay script or similar but any suggestion is welcome

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

诺曦 2024-09-16 10:09:58

查看 CSS Sprites。这是经过时间考验、久经考验的真实技术,可以避免悬停时出现此类闪烁。

Check out CSS Sprites. That's the time-tested, tried and true technique for avoiding flicker like this on hovers.

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