<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: 140px;
height: 140px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
border: 3px solid #1e96fc;
}
.circle:before {
content: "Loading";
color: #fff;
font-size: 16px;
letter-spacing: 2px;
text-transform: uppercase;
}
.circle:after {
content: "";
position: absolute;
top: -5px;
left: -5px;
width: 100%;
height: 100%;
border-radius: 50%;
border: 6px solid transparent;
border-top: 6px solid #d00000;
animation: rotate 2s ease-in infinite;
}
@keyframes rotate {
100% {
transform: rotate(720deg);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.