首页 > Web开发 > 详细

CSS呼吸灯效果

时间:2019-11-20 13:59:53      阅读:115      评论:0      收藏:0      [点我收藏+]
<html>

<head>

</head>
<body>
<div class="arrow_box">按按</div>
</body>
<style>
.arrow_box
{
width:40px;
height:40px;
animation: glow 800ms ease-out infinite alternate; 
}
@keyframes glow {
    0% {
        border-color: #393;
        box-shadow: 0 0 5px rgba(0,255,0,.2), inset 0 0 5px rgba(0,255,0,.1), 0 1px 0 #393;
    }
    100% {
        border-color: #6f6;
        box-shadow: 0 0 20px rgba(0,255,0,.6), inset 0 0 10px rgba(0,255,0,.4), 0 1px 0 #6f6;
    }
}
</style>
</html>

 

CSS呼吸灯效果

原文:https://www.cnblogs.com/winchance/p/11897165.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!