Unique Comet Cursor - 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>Unique Comet Cursor</title> <style> body { margin: 0; overflow: hidden; background: #000; } .comet { position: absolute; width: 10px; height: 10px; background: rgba(255, 69, 0, 0.8); border-radius: 50%; pointer-events: none; animation: comet 1s linear infinite; } @keyframes comet { from { transform: scale(1); opacity: 1; box-shadow: 0 0 10px rgba(255, 69, 0, 0.8); } to { transform: scale(3); opacity: 0; box-shadow: 0 0 30px rgba(255, 69, 0, 0.8); } } </style> </head> <body> <script> document.addEventListener('mousemove', function(e) { const comet = document.createElement('div'); comet.className = 'comet'; comet.style.left = `${e.pageX}px`; comet.style.top = `${e.pageY}px`; document.body.appendChild(comet); setTimeout(() => comet.remove(), 1000); }); </script> </body> </html>