Guest User

Untitled

a guest
Oct 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. let type = (target, delay, text) => {
  2. if (text.length === 0) {
  3. return;
  4. }
  5.  
  6. target.innerHTML += text[0];
  7. return setTimeout(() => type(target, delay, text.slice(1)),
  8. delay);
  9. };
  10.  
  11. type(title, 250, 'To-do Application')
Add Comment
Please, Sign In to add comment