help code gives no error
/*edit: I fixed the problem with it not moving, but now when it tries to clearInterval (move), it says move is not defined. */ this code is supposed to take an element and a number value, and move the element by the number's percent of 1000 along another element that is 792 pixels wide. When I run it I get no error, but the element doesn't move. Please help I've been trying for hours. function moveScrollers (id,distance) { id.style.visibility = 'visible'; i = 0; finalDistance = 0; var move = setInterval (movement (i, id, distance), 10); }; function movement (i ,id ,distance) { if (i == distance) { clearInterval (move); } else { speed = Math.ceil (Math.sqrt (distance - i)); i += speed increase = Math.ceil(1000/792*speed); finalDistance += increase; id.style.left = finalDistance + 'px'; console.log ('largba'); } };