@keyframes spin { from { transform: rotate(0); } to{ transform: rotate(359deg); } } * { box-sizing: border-box; } body { min-height: 100vh; background-color: #1d2630; display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; } .spinner-box { width: 300px; height: 300px; display: flex; justify-content: center; align-items: center; background-color: transparent; } .circle-border { width: 150px; height: 150px; padding: 3px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: rgb(63,249,220); background: linear-gradient(0deg, rgba(63,249,220,0.1) 33%, rgba(63,249,220,1) 100%); animation: spin .8s linear 0s infinite; } .circle-core { width: 100%; height: 100%; background-color: #1d2630; border-radius: 50%; }