Jquery On Hover:使用文本覆盖淡化背景
我正在尝试创建一种翻转效果,将图像的不透明度淡化至 20%,并将文本覆盖在 div 顶部。我已经能够使其淡出并显示文本,但由于某种原因,当它们组合在一起时效果不佳。我发现与我想做的最接近的事情是: http://damiencorrell.com/ 除了我正在尝试将背景淡化至 20%。感谢您的所有帮助!
I am trying to create a rollover effect that fades the image to 20% opacity and also overlaying text on top of the div. I have been able to make it fade, and reveal the text but for some reason it doesn't work well when they are combined. The closest thing that I have found to what I am trying to do is this: http://damiencorrell.com/ except for I am trying to get the background to fade to 20%. Thanks for all of the help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这样的事情:
try something like this: