Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let type = (target, delay, text) => {
- if (text.length === 0) {
- return;
- }
- target.innerHTML += text[0];
- return setTimeout(() => type(target, delay, text.slice(1)),
- delay);
- };
- type(title, 250, 'To-do Application')
Add Comment
Please, Sign In to add comment