I used setTimeout
to passing motions. and some point(it could be any time) I would like to pause it. I have looked at other people wrote here. but couldn't understand easily.
anyone can give me some advice to work it? thx.
function start(){
a();
}
function a(){
document.getElementById('a').style.display = 'block';
setTimeout(b,1000);
}
function b(){
document.getElementById('b').style.display = 'block';
setTimeout(c,1000);
}
function c(){
document.getElementById('c').style.display = 'block';
setTimeout(d,1000);
}
function d(){
document.getElementById('d').style.display = 'block';
setTimeout(e,1000);
}
function e(){
document.getElementById('e').style.display = 'block';
}