Dont change text of elemets that had their text changed during delay?

This commit is contained in:
bingus_violet 2024-06-26 05:12:31 -05:00
parent 0e1f6f09b3
commit e05884f41f

View file

@ -12,7 +12,11 @@ function typeWriter(elem, delay) {
}, 20)
}
}
setTimeout(nextLetter, delay);
setTimeout(() => {
if (elem.text() == '_'.repeat(elemText.length)) {
nextLetter()
}
}, delay);
}
$(document).ready(() => {