.container { width: 100%; height: 100%; position: absolute; top: 0; left: 0; display: flex; z-index: 99999; background: rgb(255 255 255 / 75%); } .spinner { width: 50px; height: 50px; margin: auto; display: inline-block; border: 3px solid #c9c9c9; border-radius: 50%; border-top-color: #25a070; animation: spin 1s ease-in-out infinite; } @keyframes spin { to { transform: rotate(360deg); } }