<div class="container">
<div class="wrapper">
<div class="circle1"></div>
</div>
<div class="wrapper">
<div class="circle2"></div>
</div>
<div class="wrapper">
<div class="circle3"></div>
</div>
<div class="wrapper">
<div class="circle4"></div>
</div>
<div class="wrapper">
<div class="circle5"></div>
</div>
<div class="wrapper">
<div class="circle6"></div>
</div>
<div class="wrapper">
<div class="circle7"></div>
</div>
<div class="wrapper">
<div class="circle8"></div>
</div>
<div class="wrapper">
<div class="circle9"></div>
</div>
<div class="wrapper ">
<div class="outer">
<div class="circle10"></div>
<div class="circle10"></div>
<div class="circle10"></div>
<div class="circle10"></div>
</div>
</div>
</div>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
width: 100%;
min-height: 100vh;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
background: #222;
}
.wrapper {
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
/* ==== Animation 1 ==== */
.circle1 {
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 0 10px 2px #ff006e;
display: flex;
justify-content: center;
align-items: center;
}
.circle1:before {
content: "";
border-radius: 50%;
position: absolute;
}
.circle1:before {
border: 50px solid transparent;
border-top-color: #ff006e;
animation: rotate 2s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* ==== Animation 2 ==== */
.circle2 {
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 0 10px 2px #ff006e;
display: flex;
justify-content: center;
align-items: center;
}
.circle2:after,
.circle2:before {
content: "";
border-radius: 50%;
position: absolute;
}
.circle2::before {
border: 50px solid transparent;
border-top-color: #ff006e;
animation: rotate 2s linear infinite;
}
.circle2::after {
height: 50px;
width: 50px;
background-color: #000;
}
/* ==== Animation 3 ==== */
.circle3 {
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 0 10px 2px #ff006e;
display: flex;
justify-content: center;
align-items: center;
}
.circle3:after,
.circle3:before {
content: "";
border-radius: 50%;
position: absolute;
}
.circle3::before {
border: 50px solid transparent;
border-top-color: #ff006e;
animation: rotate 2s linear infinite;
}
.circle3::after {
height: 95px;
width: 95px;
background-color: #000;
}
/* ==== Animation 4 ==== */
.circle4 {
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 0 10px 2px #ff006e;
display: flex;
justify-content: center;
align-items: center;
}
.circle4:after,
.circle4:before {
content: "";
border-radius: 50%;
position: absolute;
}
.circle4::before {
border: 50px solid transparent;
border-top-color: #ff006e;
border-bottom-color: #ff006e;
animation: rotate 2s linear infinite;
}
.circle4::after {
height: 90px;
width: 90px;
background-color: #000;
}
/* ==== Animation 5 ==== */
.circle5 {
position: relative;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: #fee440;
box-shadow: 0 0 10px 2px #ff006e;
display: flex;
justify-content: center;
align-items: center;
}
.circle5:before {
content: "";
border-radius: 50%;
position: absolute;
}
.circle5::before {
border: 50px solid transparent;
border-top-color: #ff006e;
border-bottom-color: #ff006e;
animation: rotate 2s linear infinite;
}
/* ==== Animation 6 ==== */
.circle6 {
width: 100px;
height: 100px;
position: relative;
border-radius: 50%;
}
.circle6:before,
.circle6:after {
content: "";
position: absolute;
border-radius: 50%;
}
.circle6:before {
width: 100%;
height: 100%;
animation: rotate 1s infinite linear;
background-image: linear-gradient(40deg, #ff006e 30%, #fee440 40%, #000 60%);
}
.circle6:after {
width: 90%;
height: 90%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #222;
box-shadow: inset 0 0 20px #555;
}
/* ==== Animation 7 ==== */
.circle7 {
height: 100px;
width: 100px;
border-radius: 50%;
border: dashed 2px #ff006e;
animation: rotate 3s infinite linear;
}
/* ==== Animation 8 ==== */
.circle8 {
height: 100px;
width: 100px;
border-radius: 50%;
animation: rotate 3s infinite linear, changeType 1s infinite linear;
}
@keyframes changeType {
0% {
border: dashed 3px #ff006e;
}
25% {
border: dashed 4px #ff006e;
}
50% {
border: dashed 6px #ff006e;
}
75% {
border: dashed 8px #ff006e;
}
100% {
border: solid 8px #ff006e;
}
}
/* ==== Animation 9 ==== */
.circle9 {
height: 100px;
width: 100px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
animation: rotate 1s ease infinite;
}
.circle9:after,
.circle9:before {
content: " ";
position: absolute;
border: 5px solid #118ab2;
border-radius: 50%;
}
.circle9:after {
height: 100%;
width: 100%;
border-left-color: #3a86ff;
border-top-color: #8338ec;
border-right-color: #ff006e;
border-bottom-color: #fb5607;
}
.circle9:before {
height: 120px;
width: 120px;
border: 5px solid transparent;
border-bottom-color: #bbadff;
opacity: 1;
animation: rotate reverse 1s ease infinite;
}
/* ==== Animation 10 ==== */
.outer {
position: relative;
width: 100px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
background-image: linear-gradient(
0deg,
rgba(255, 85, 85, 1) 0.1%,
rgba(85, 85, 255, 1) 100%
);
animation: rotate 1s linear infinite;
}
.outer:after {
content: "";
width: 100%;
height: 100%;
position: absolute;
background: #000;
border: 5px solid #fff;
border-radius: 50%;
}
.circle10 {
width: 100%;
height: 100%;
position: absolute;
border-radius: 50%;
background: linear-gradient(to right, #c6ffdd, #fbd786, #f7797d);
}
.circle10:nth-child(1) {
filter: blur(5px);
}
.circle10:nth-child(2) {
filter: blur(10px);
}
.circle10:nth-child(3) {
filter: blur(15px);
}
.circle10:nth-child(4) {
filter: blur(20px);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.