css发光动画

<!DOCTYPE html>
<html>
 
<head>
<meta charset="UTF-8">
    <title>横向滑动</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style type="text/css">
     .Twinkle {
	  animation: mytwinkle 1s infinite;
	  -moz-animation: mytwinkle 1s infinite;
	  -webkit-animation: mytwinkle 1s infinite;
	  -o-animation: mytwinkle 1s infinite;
	}
	
	@keyframes mytwinkle
	{
	0% {box-shadow:0 0 5px 0px #FF4500;}
	25% {box-shadow:0 0 15px 2px #FF4500;}
	50% {box-shadow:0 0 25px 10px #FF4500;}
	75% {box-shadow:0 0 15px 2px #FF4500;}
	100% {box-shadow:0 0 5px 0px #FF4500;}
	}
	
	@-moz-keyframes mytwinkle /* Firefox */
	{
	0% {box-shadow:0 0 5px 0px #FF4500;}
	25% {box-shadow:0 0 15px 2px #FF4500;}
	50% {box-shadow:0 0 25px 10px #FF4500;}
	75% {box-shadow:0 0 15px 2px #FF4500;}
	100% {box-shadow:0 0 5px 0px #FF4500;}
	}
	
	
	@-webkit-keyframes mytwinkle /* Safari and Chrome */
	{
	0% {box-shadow:0 0 5px 0px #FF4500;}
	25% {box-shadow:0 0 15px 2px #FF4500;}
	50% {box-shadow:0 0 25px 10px #FF4500;}
	75% {box-shadow:0 0 15px 2px #FF4500;}
	100% {box-shadow:0 0 5px 0px #FF4500;}
	}
	
	@-o-keyframes mytwinkle /* Opera */
	{
	0% {box-shadow:0 0 5px 0px #FF4500;}
	25% {box-shadow:0 0 15px 2px #FF4500;}
	50% {box-shadow:0 0 25px 10px #FF4500;}
	75% {box-shadow:0 0 15px 2px #FF4500;}
	100% {box-shadow:0 0 5px 0px #FF4500;}
	} 
	</style>
</head>
<body>
<div class="Twinkle" style="width: 200px;">
 123
</div>

</body>
</html> 

<!DOCTYPE html>
<html>
 
<head>
<meta charset="UTF-8">
    <title>横向滑动</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style type="text/css">
	.radius{
    width: 100px;
    height: 100px;
    margin: 100px auto;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    background-color: red;
    position: relative;
}
.animate-radius{
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    border-radius: 50%;
    background-color: #ff8533;
    animation:radius 1.5s ease-out infinite forwards;
    -webkit-animation: radius 1.5s ease-out infinite forwards;
    -moz-animation:radius 1.5s ease-out infinite forwards;
    -ms-animation:radius 1.5s ease-out infinite forwards;
}
@keyframes radius {
    0%{  transform: scale(1,1);
        -webkit-transform:scale(1,1) ;
        -moz-transform:scale(1,1) ;
        -ms-transform:scale(1,1) ;
        opacity: 0.6;
        }
    50%{
        transform: scale(1.4,1.4);
        -webkit-transform:scale(1.4,1.4) ;
        -moz-transform:scale(1.4,1.4) ;
        -ms-transform:scale(1.4,1.4) ;
        opacity: 0;
    }
}
@-webkit-keyframes radius {
    0%{
        transform: scale(1,1);
        -webkit-transform:scale(1,1) ;
        -moz-transform:scale(1,1) ;
        -ms-transform:scale(1,1) ;
        opacity: 0.6;
    }
    100%{
        transform: scale(1.4,1.4);
        -webkit-transform:scale(1.4,1.4) ;
        -moz-transform:scale(1.4,1.4) ;
        -ms-transform:scale(1.4,1.4) ;
        opacity: 0;
    }
}
@-moz-keyframes radius {
    0%{  transform: scale(1,1);
        -webkit-transform:scale(1,1) ;
        -moz-transform:scale(1,1) ;
        -ms-transform:scale(1,1) ;
        opacity: 0.6;
    }
    50%{
        transform: scale(1.4,1.4);
        -webkit-transform:scale(1.4,1.4) ;
        -moz-transform:scale(1.4,1.4) ;
        -ms-transform:scale(1.4,1.4) ;
        opacity: 0;
    }
}
@-ms-keyframes radius {
    0%{  transform: scale(1,1);
        -webkit-transform:scale(1,1) ;
        -moz-transform:scale(1,1) ;
        -ms-transform:scale(1,1) ;
        opacity: 0.6;
    }
    50%{
        transform: scale(1.4,1.4);
        -webkit-transform:scale(1.4,1.4) ;
        -moz-transform:scale(1.4,1.4) ;
        -ms-transform:scale(1.4,1.4) ;
        opacity: 0;
    }
}

    </style>
</head>
<body>
<div class="radius">
    <span class="animate-radius"></span>
    888
</div>
</body>
</html> 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值