I’m trying to make an animated slide show. This code works but without animation so I see the change of position when the function ends, and it’s take the time suppose to animate
function slide()
{
for (var i=0;i<100;i++)
{
setTimeout("realslide(i);",100);
}
};
function realslide(ii){
var I=ii;
var s_e=document.getElementById("slide_element");
var po="-"+i+"px";
se.style.left=po;
};
You have given too less time for observing the animation behavior. Change the time stamp to say 3 seconds, 3000 instead of 1 millisecond 100
See my Comment