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