Trail Of Circles Cursor - VexaX
Run Code
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>Trail of Circles Cursor</title> <style> body { margin: 0; overflow: hidden; background: #000; } .trail { position: absolute; width: 8px; height: 8px; background: rgba(255, 0, 0, 0.7); border-radius: 50%; pointer-events: none; animation: trail 0.5s ease-out infinite; } @keyframes trail { from { opacity: 1; } to { opacity: 0; } } </style> </head> <body> <script> document.addEventListener('mousemove', function(e) { const trail = document.createElement('div'); trail.className = 'trail'; trail.style.left = `${e.pageX}px`; trail.style.top = `${e.pageY}px`; document.body.appendChild(trail); setTimeout(() => trail.remove(), 500); }); </script> </body> </html>