function runOne() {
rightBox.style.animation = "scrollTextTwo 10s 1";
}
function runTwo() {
rightBoxTwo.style.animation = "scrollTextTwo 10s 1";
}
function runThree() {
rightBoxThree.style.animation = "scrollTextTwo 10s 1";
}
This question has been asked before but answered with jquery, please simply looking for an example with non jquery syntax, if it not possible to have these run in order only after the previous one completes using javascript please explain why? i understand the concept of synchronous and asynchronous code so a definition of these terms is not needed as well. just a working example, enough code has been provided.
calling the second funtction from the first like so:
function runOne() {rightBox.style.animation = "scrollTextTwo 10s 1"; runTwo();}
does not attain the goal of running one only after the first is complete