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