https://github.com/camwiegert/typical or ```es6 const newText = 'Close Menu' for (let i = 0; i <= newText.length; i += 1) { setTimeout(() => { this.trigger.textContent = `${newText.substr(0, i)}${this.trigger.textContent.trim().substr(i + 1)}` }, 75 * i) } ```
https://github.com/camwiegert/typical
or