Colorful Spinners - MeggiTools
Run
Toggle Theme
Share Link
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Colorful Spinners</title> <style> body, html { margin: 0; padding: 0; overflow: hidden; height: 100%; background: #000; display: flex; justify-content: center; align-items: center; } .spinner { position: absolute; width: 50px; height: 50px; border: 5px solid transparent; border-top-color: #ff0000; border-radius: 50%; animation: spin 2s infinite linear; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </head> <body> <script> for (let i = 0; i < 30; i++) { const spinner = document.createElement('div'); spinner.className = 'spinner'; spinner.style.left = `${Math.random() * 100}%`; spinner.style.top = `${Math.random() * 100}%`; spinner.style.animationDuration = `${Math.random() * 4 + 1}s`; document.body.appendChild(spinner); } </script> </body> </html>