added timeout before animating next text in the typewriter animation.

Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
2021-08-01 12:14:17 +01:00
parent 519d38e70d
commit fb07a70e5f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ document.addEventListener('DOMContentLoaded', () =>
// text exists! start typewriter animation
typeWriter(dataText[i], 0, function(){
// after callback (and whole text has been animated), start next text
StartTextAnimation(i + 1);
setTimeout(StartTextAnimation, 1500, i + 1);
});
}
}