Dont change text of elemets that had their text changed during delay?
This commit is contained in:
parent
0e1f6f09b3
commit
e05884f41f
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,11 @@ function typeWriter(elem, delay) {
|
||||||
}, 20)
|
}, 20)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setTimeout(nextLetter, delay);
|
setTimeout(() => {
|
||||||
|
if (elem.text() == '_'.repeat(elemText.length)) {
|
||||||
|
nextLetter()
|
||||||
|
}
|
||||||
|
}, delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
|
|
Loading…
Reference in a new issue