admin管理员组文章数量:1356067
Does there exist some kind of jQuery fade into black effect withing a specific part of a picture. So it really colors the picture into being black? I do know about the canvas element, but it just doesn`t seem like a good solution to me, would be grateful with some help :)
Does there exist some kind of jQuery fade into black effect withing a specific part of a picture. So it really colors the picture into being black? I do know about the canvas element, but it just doesn`t seem like a good solution to me, would be grateful with some help :)
Share Improve this question asked Mar 12, 2013 at 11:43 user2097217user2097217 4171 gold badge9 silver badges17 bronze badges 01 Answer
Reset to default 7applying an overlay to the picture ( an absolutely positioned DIV
), and adding opacity: 0
and background-color: black
will make a transparent overlay. You can then animate the opacity to 1, basically "darkening" the image progressively.
Edit: here's a fiddle with a demo http://jsfiddle/FMSKf/
本文标签: Fade into black jQuery or Javascript effect ExistsStack Overflow
版权声明:本文标题:Fade into black jQuery or Javascript effect? Exists? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744048980a2582065.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论