<div class="container">
<div class="wrapper">
<div class="circle"></div>
</div>
</div>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: #000;
}
.wrapper {
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
}
.circle {
width: 100px;
height: 100px;
position: relative;
border-radius: 50%;
border: 5px dashed #555;
}
.circle::before,
.circle::after {
content: "";
width: 100%;
height: 100%;
border-radius: 50%;
position: absolute;
top: -5px;
left: -5px;
border: 5px solid transparent;
animation: rotate 1.25s ease infinite;
}
.circle::before {
border-top-color: #ffb400;
}
.circle::after {
border-top-color: transparent;
border-bottom-color: #00a6ed;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.