实现一个轨迹旋转小圆圈分享一下!!!
有了这个demo可以脑补一下实现更多的好看效果
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>旋转小球</title>
<style>
body {
width: 100%;
height: 800px;
display: flex;
justify-content: center;
align-items: center;
}

.box {
width: 200px;
height: 200px;
background: transparent;
border: 10px solid #b4cb2f;
border-radius: 50%;
position: relative;
animation: rounded 3s infinite linear;
}
@keyframes rounded {
0% {
rotate: 0deg;
}
100% {
rotate: 360deg;
}
}
.box::before {
position: absolute;
top: 10px;
left: 10px;
content: "";
width: 30px;
height: 30px;
background: pink;
border-radius: 50%;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>