小球跳动加载效果

文章目录

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			* {
				/*初始化 */
				margin: 0 auto;
			}

			body {
				height: 100vh;
				display: flex;
				justify-content: center;
				align-items: center;
			}

			.loder span.shadow {
				width: 50px;
				height: 25px;
				border-radius: 50%;
				background-color: #333;
				position: absolute;
				left: calc(var(--i) * 100px);
				bottom: -12.5px;
				z-index: -1;
				animation: shadow 2s linear infinite calc(var(--i) * 0.3s);
			}

			.loder {
				width: 650px;
				height: 200px;
				position: relative;
			}

			.loder span.a {
				width: 50px;
				height: 50px;
				border-radius: 50%;
				background-color: lightseagreen;
				position: absolute;
				left: calc(var(--i) * 100px);
				animation: jump 2s linear infinite calc(var(--i) * 0.3s);
			}

			@keyframes jump {

				0%,
				100% {
					bottom: 150px
				}

				40%,
				60% {
					bottom: 0px;
					height: 50px;
				}

				50% {
					height: 25px;
					filter: hue-rotate(180deg);
				}
			}
			@keyframes shadow {

				0%,
				100% {
					transform: scale(2);
					opacity: 0.1;
					filter: blur(5px);
					
				}
				40%,60%{
					transform: scale(1);
					opacity: 1;
					filter: blur(2px);
				}

			}
		</style>
	</head>
	<body>
		<div class="loder">
			<span class="a" style="--i:1;"></span>
			<span class="shadow" style="--i:1;"></span>
			<span class="a" style="--i:2;"></span>
			<span class="shadow" style="--i:2;"></span>
			<span class="a" style="--i:3;"></span>
			<span class="shadow" style="--i:3;"></span>
			<span class="a" style="--i:4;"></span>
			<span class="shadow" style="--i:4;"></span>
			<span class="a" style="--i:5;"></span>
			<span class="shadow" style="--i:5;"></span>
		</div>
	</body>
</html>




# 总结
![在这里插入图片描述](https://img-blog.csdnimg.cn/1e0a531262244cbdb3c0fd1f0edafae5.png#pic_center)

小球加载炫酷效果
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值