Rainbow Tail 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>Rainbow Tail Cursor</title> <style> body { margin: 0; overflow: hidden; background: #000; } .tail { position: absolute; width: 8px; height: 8px; background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet); border-radius: 50%; pointer-events: none; animation: tail 1s linear infinite; } @keyframes tail { from { opacity: 1; } to { opacity: 0; } } </style> </head> <body> <script> document.addEventListener('mousemove', function(e) { const tail = document.createElement('div'); tail.className = 'tail'; tail.style.left = `${e.pageX}px`; tail.style.top = `${e.pageY}px`; document.body.appendChild(tail); setTimeout(() => tail.remove(), 1000); }); </script> </body> </html>