0
Why this code dont work?
help me pls https://code.sololearn.com/WddNuBeS9mmP/?ref=app
3 Respuestas
+ 22
onload = function() {
pos = 0;
c = document.getElementById('circle');
c.style.position = "absolute";
t = setInterval(animate, 10);
function animate() {
if (pos >= 250) {
clearInterval(t);
} else {
pos++;
c.style.left = pos + 'px';
}
}
};
+ 1
im understood!!!! my circle was without position!!!!
+ 1
thanks