![在这里插入图片描述](https://img-blog.csdnimg.cn/20210201232457376.gif)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="main">
<div class="contain"></div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
}
body {
background-color: black;
}
.main {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 300px;
height: 300px;
}
@keyframes roll {
100% {
transform: rotate(360deg);
filter: hue-rotate(360deg);
}
}
.contain::before {
content: "";
position: absolute;
width: 275px;
height: 275px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: black;
border-radius: 50%;
}
.contain {
position: absolute;
width: 300px;
height: 300px;
background: linear-gradient(skyblue, transparent 40%);
border-radius: 50%;
animation: roll 1s linear infinite;
}
.contain::after {
content: "";
position: absolute;
top: 0px;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(skyblue, transparent 40%);
border-radius: 50%;
z-index: -1;
filter: blur(50px);
}