<div class="one-div"></div>
.one-div { width: 40px; height: 40px; border: 8px solid #fff; border-top-color: #8c8eff; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg);