diff --git a/src/js/index.js b/src/js/index.js index 196aa91..63e06fa 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -11,7 +11,7 @@ function textWrriter(text, element) { for (let i = 0; i < caracther.length; i++) { setTimeout(() => { element.innerHTML += `${caracther[i]}`; - }, 60); + }, 60 * i); } } else { console.log("Text is empty");