纯css3闪烁动画《发光的边框效果》

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>纯css3闪烁动画</title>
<style>

/* 动画闪烁颜色 */
@-webkit-keyframes greenPulse {
from { background-color: #749a02; -webkit-box-shadow: 0 0 9px #333; }
50% { background-color: #91bd09; -webkit-box-shadow: 0 0 18px #91bd09; }
to { background-color: #749a02; -webkit-box-shadow: 0 0 9px #333; }
}

@-webkit-keyframes bluePulse {
from { background-color: #007d9a; -webkit-box-shadow: 0 0 9px #333; }
50% { background-color: #2daebf; -webkit-box-shadow: 0 0 18px #2daebf; }
to { background-color: #007d9a; -webkit-box-shadow: 0 0 9px #333; }
}


@-webkit-keyframes magentaPulse {
from { background-color: #630030; -webkit-box-shadow: 0 0 9px #333; }
50% { background-color: #a9014b; -webkit-box-shadow: 0 0 18px #a9014b; }
to { background-color: #630030; -webkit-box-shadow: 0 0 9px #333; }
}

/* 重复动画 */
a.button{-webkit-animation-iteration-count: infinite;}

/* 动画名称、动画完成时间 */
.greenPulse.button{-webkit-animation-name:greenPulse;-webkit-animation-duration: 3s;}
.bluePulse.button{-webkit-animation-name:bluePulse;-webkit-animation-duration:3s;}
.magentaPulse.button{-webkit-animation-name:magentaPulse;-webkit-animation-duration:3s;}

</style>
</head>
<body style="background-color:#ccc;">
<div id="audioactiveButtonspage" class="chrome window">
<div class="wall-of-buttons">
<a class="large greenPulse button">lock at me</a>
<a class="large bluePulse button">active me</a>
<a class="barge magentaPulse button">click me</a>
</div>
</div>
</body>
</html>

转载于:https://www.cnblogs.com/liuzhiqiangbk/p/6549491.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值