CSS3动画:wifi 焦点扩散渐变 (动画)

CSS3动画:wifi 焦点扩散渐变 (动画)


效果图 · 演示:

在这里插入图片描述


Demo 代码如下:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>焦点扩散渐变动画</title>
<style type="text/css">
*, ::after, ::before {
    box-sizing: border-box;
}
.flash-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 2;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    background-color: #c80000;
    margin-top: -5px;
}
.flash-icon:before {
    content: "";
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border: 1px solid #c80000;
    top: 50%;
    margin-top: -5px;
    left: 50%;
    margin-left: -5px;
    animation-name: blink-a;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
.flash-icon:after {
    content: "";
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border: 1px solid #c80000;
    top: 50%;
    margin-top: -5px;
    left: 50%;
    margin-left: -5px;
    animation-name: blink-b;
    animation-duration: 2s;
    animation-delay: 1s;
    animation-iteration-count: infinite;
}
@keyframes blink-a {
	0%   {transform: scale(1, 1);}
	100%  {transform: scale(3, 3); opacity: 0;}
}
@keyframes blink-b {
	0%   {transform: scale(1, 1);}
	100%  {transform: scale(3, 3); opacity: 0;}
}
</style>
</head>
<body >
	<div class="fath" style="width: 100px;height: 100px;margin: 100px auto;position: relative;">
		<span class="flash-icon"></span>
	</div>
</body>
</html>


以上就是关于“ animate动画:wifi 焦点扩散渐变 (动画)”的全部内容。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值