淡入 premiumpixels.com 上的超链接过渡 - 如何实现?
将鼠标悬停在网站上的大多数超链接上(查看主页上的页脚以获取简单示例)您会看到超链接的悬停颜色逐渐淡出。
我确信它是 jQuery,直到我在 jquery.custom.js 文件——仅添加特定的悬停颜色类。
困惑!
Hover over most any hyperlink on the site (look at the footer on the homepage for a quick example) and you'll see a gentle fade to the hyperlink's hover color.
I was certain it was jQuery until I could find no mention of these animations in the jquery.custom.js file -- only adding specific hover color classes.
Baffled!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来是这样的:
我很尴尬地说我对过渡属性不熟悉,但一开始我也很困惑,特别是在我禁用了 javascript 之后:)
它在 FF4 和 Chrome 中对我有用,但是 根据这篇文章我快速谷歌搜索,IE9将不支持这个财产。我不会认为这是事实,这只是我经过 5 分钟研究后发现的结果。
Looks like this is doing it:
I'm embarrassed to say that I'm unfamiliar with the transition property, but I was baffled at first too, especially after I disabled javascript :)
It worked for me in FF4 and Chrome, but according to this article I quickly googled, IE9 will not be supporting this property. I wouldn't take that as fact, that's just what I found with 5 minutes research.