Skip to content

Commit

Permalink
Update textWriter function delay in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Anto426 committed Sep 25, 2024
1 parent 089d736 commit a1a0d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a1a0d72

Please sign in to comment.