基本信息
源码名称:css实现呼吸灯效果
源码大小:1.50KB
文件格式:.html
开发语言:CSS
更新时间:2019-03-30
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Breathe Button - iinterest</title> <style type="text/css"> /*resize*/ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,form,input,textarea,p,th,td,menu { margin:0; padding:0; } body { font-size:12px; -webkit-text-size-adjust:none; font-family:Arial,Helvetica,sans-serif; } img { border:none; } ol,ul { list-style:none; } em { font-style:normal; } a { text-decoration:none; } .clearfix { #zoom:1; } .clearfix:after { content:' '; display:block; height:0; clear:both; color:#fff; } body { background:#333; } .breathe-btn { position:relative; width:100px; height:10px; margin:40px auto; line-height:40px; border:1px solid #2b92d4; border-radius:5px; color:#fff; font-size:20px; text-align:center; cursor:pointer; box-shadow:0 1px 2px rgba(0,0,0,.3); overflow:hidden; background-image:-webkit-gradient(linear,left top,left bottom,from(#6cc3fe),to(#21a1d0)); -webkit-animation-timing-function:ease-in-out; -webkit-animation-name:breathe; -webkit-animation-duration:2700ms; -webkit-animation-iteration-count:infinite; -webkit-animation-direction:alternate; } @-webkit-keyframes breathe { 0% { opacity:.2; box-shadow:0 1px 2px rgba(255,255,255,0.1); } 100% { opacity:1; border:1px solid rgba(59,235,235,1); box-shadow:0 1px 30px rgba(59,255,255,1); } } </style> </head> <body> <div class="breathe-btn"></div> </body> </html>