Skip to content

Instantly share code, notes, and snippets.

@danjenkins
Created April 7, 2014 18:53
Show Gist options
  • Save danjenkins/10029977 to your computer and use it in GitHub Desktop.
Save danjenkins/10029977 to your computer and use it in GitHub Desktop.
//text is split up to letters
$.each(text.split(''), function(i, letter){
//we add 100*i ms delay to each letter
setTimeout(function(){
//we add the letter to the container
$('#container').html($('#container').html() + letter);
}, 100*i);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment