title
A prototype
span{ position:absolute; border-radius:100%; font-size:20px; }
let body = document.body let enableCall = true; document.addEventListener('mousemove', function(e) { if (!enableCall) return; enableCall = false; let circle = document.createElement('span'); let x = e.clientX; let y = e.clientY; // let x = e.pageX; // for absolute position // let y = e.pageY; circle.style.left = x + "px"; circle.style.top = y + "px"; circle.innerHTML = "*"; body.appendChild(circle); setTimeout(function() { circle.remove(); }, 2800); setTimeout(() => enableCall = true, 100); });
snap
save
new
fork
download
html
css
js
output
gallery
config
➚ link to output
➚ snap player
font size
live reload
snap mode
layout
⤷ switch
★ info and code