The point here is to set the div's position to the mouse as an additional effect, it should have a radius, but it doesn't work:
let inner_circle = document.getElementById("inner_circle"); window.addEventListener("mousemove", function(mouse) { inner_circle.style.transform = `translate(${mouse.clientX}px, ${mouse.clientY}px)`; // sets the position of the inner circle to the mouse });
#inner_circle{ margin-left: -3px; margin-top: -3px; position: fixed; top: 0; left: 0; border: 1px solid #703be7; border-radius: 50%; //<- doesn't work font-size: 1px; background-color: #703be7; width: 6px; width: 6px; z-index: 1000001; pointer-events: none; }
<div id="inner_circle"></div>
Change your CSS. Width: 6px; Width: 6px; Width: 6px; Height: 6px;
I'm assuming you're referring to the height of the second row here, which makes it a problem
So just change it to height: