1,视觉差
2,实现一个圆一直旋转
3,实现一个椭圆一直旋转,尽量放大
4,父元素设置overflow:hidden即可
还有SVG canvas实现 都参考:https://www.cnblogs.com/coco1s/p/7197662.html
body {
position: relative;
align-items: center;
min-height: 100vh;
background-color: rgb(118, 218, 255);
overflow: hidden;
}
body:before, body:after {
content: "";
position: absolute;
left: 50%;
min-width: 300vw;
min-height: 300vw;
background-color: #fff;
animation-name: rotate;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
body:before {
bottom: 15vh;
border-radius: 45%;
animation-duration: 10s;
}
body:after {
bottom: 12vh;
opacity: .5;
border-radius: 47%;
animation-duration: 10s;
}
@keyframes rotate {
0% {
transform: translate(-50%, 0) rotateZ(0deg);
}
50% {
transform: translate(-50%, -2%) rotateZ(180deg);
}
100% {
transform: translate(-50%, 0%) rotateZ(360deg);
}
}