时间:2021-07-01 10:21:17 帮助过:392人阅读
<!DOCTYPE html > <html xmlns =“www.gxlcms.com/1999/xhtml”> <head> <meta http-equiv =“Content-Type”content =“text / html; charset = utf-8”/> <title>闪光图片</ title> <style> .overimg { 位置:亲戚; 显示:块; / * overflow:hidden; * / box-shadow:0 0 10px #FFF; } 。光{ cursor:pointer; 位置:绝对 左:-180px; 顶部:0; width:180px; height:90px; background-image:-moz-linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255,0.5),rgba(255,255,255,0)); background-image:-webkit-linear-gradient(0deg,rgba(255,255,255,0),rgba(255,255,255,0.5),rgba(255,255,255,0)); 变换:skewx(-25deg); -o-transform:skewx(-25deg); -moz变换:skewx(-25deg); -webkit-transform:skewx(-25deg); } .overimg:hover .light { 左:180px; -moz-transition:0.5s; -o-transition:0.5s; -webkit转换:0.5s; 过渡:0.5s; } </ style> </ head> <body> <p class =“overimg”> <a> <img src =“www.gxlcms.com/librarys/images/201402/2014_02_15_01.jpg”> </a> <i class =“light”> </ i> </ p> </ body> </ html>
以上就是CSS3实现一个效果酷炫的闪光特效代码的详细内容,更多请关注Gxl网其它相关文章!