Glowing Line 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>Glowing Line Cursor</title> <style> body { margin: 0; overflow: hidden; background: #000; } .line { position: absolute; width: 2px; height: 50px; background: rgba(255, 255, 255, 0.7); pointer-events: none; box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); animation: glow 1s linear infinite; } @keyframes glow { from { opacity: 1; } to { opacity: 0; } } </style> </head> <body> <script> document.addEventListener('mousemove', function(e) { const line = document.createElement('div'); line.className = 'line'; line.style.left = `${e.pageX}px`; line.style.top = `${e.pageY}px`; document.body.appendChild(line); setTimeout(() => line.remove(), 1000); }); </script> </body> </html>