function set() {
setj = 1;
mbe=1;
img_box.style.transform = "translate(" + mbe * 600 + "px , 0)"
var n = 0;
function go() {
n++;
console.log(n);
var setT = setTimeout(go, 1000);
if(n === 3) {
clearTimeout(setT);
if(setj === 1) {
img_box.style.transition = "0s";
img_box.style.transform = "translate(-2400px,0)";
if(mbe === 1) mbe = 4;
n = 0;
time=true;
}
}
}
go();
}
ExiaGo
相关分类