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