added timeout before animating next text in the typewriter animation.
Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
+1
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user