圆点跳跃的加载样式

更多样式:点击查看

效果

在这里插入图片描述

模板代码

<div class="indicator">
	<div class="circle"></div>
	<div class="circle"></div>
	<div class="circle"></div>
	<div class="shadow"></div>
	<div class="shadow"></div>
	<div class="shadow"></div>
</div>

样式代码

.indicator {
	width: 60px;
	height: 30px;
	position: relative;
	z-index: 4;
}

.circle {
	width: 8px;
	height: 8px;
	position: absolute;
	border-radius: 50%;
	background-color: #000;
	left: 15%;
	transform-origin: 50%;
	animation: circle-animation 0.5s alternate infinite ease;
}

@keyframes circle-animation {
	0% {
		top: 20px;
		height: 5px;
		border-radius: 50px 50px 25px 25px;
		transform: scaleX(1.7);
	}

	40% {
		height: 8px;
		border-radius: 50%;
		transform: scaleX(1);
	}

	100% {
		top: 0%;
	}
}

.circle:nth-child(2) {
	left: 45%;
	animation-delay: 0.2s;
}

.circle:nth-child(3) {
	left: auto;
	right: 15%;
	animation-delay: 0.3s;
}

.shadow {
	width: 5px;
	height: 4px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.2);
	position: absolute;
	top: 30px;
	transform-origin: 50%;
	z-index: 3;
	left: 15%;
	filter: blur(1px);
	animation: shadow-animation 0.5s alternate infinite ease;
}

@keyframes shadow-animation {
	0% {
		transform: scaleX(1.5);
	}
	40% {
		transform: scaleX(1);
		opacity: 0.7;
	}
	100% {
		transform: scaleX(0.2);
		opacity: 0.4;
	}
}
.shadow:nth-child(4) {
	left: 45%;
	animation-delay: 0.2s;
}

.shadow:nth-child(5) {
	left: auto;
	right: 15%;
	animation-delay: 0.3s;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值