Radiating Lines - 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>Radiating Lines</title> <style> body, html { margin: 0; padding: 0; overflow: hidden; height: 100%; background: #000; display: flex; justify-content: center; align-items: center; } .line { position: absolute; width: 2px; height: 100px; background: #00ff00; animation: radiate 3s infinite linear; } @keyframes radiate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </head> <body> <script> for (let i = 0; i < 60; i++) { const line = document.createElement('div'); line.className = 'line'; line.style.left = `${Math.random() * 100}%`; line.style.top = `${Math.random() * 100}%`; line.style.animationDuration = `${Math.random() * 3 + 1}s`; document.body.appendChild(line); } </script> </body> </html>