Floating Bubbles 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>Floating Bubbles Cursor</title> <style> body { margin: 0; overflow: hidden; background: #000; } .bubble { position: absolute; width: 10px; height: 10px; background: rgba(0, 191, 255, 0.8); border-radius: 50%; pointer-events: none; animation: float 1s ease-out infinite; } @keyframes float { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(0, -50px) scale(1.5); opacity: 0; } } </style> </head> <body> <script> document.addEventListener('mousemove', function(e) { const bubble = document.createElement('div'); bubble.className = 'bubble'; bubble.style.left = `${e.pageX}px`; bubble.style.top = `${e.pageY}px`; document.body.appendChild(bubble); setTimeout(() => bubble.remove(), 1000); }); </script> </body> </html>