Created
April 7, 2014 18:53
-
-
Save danjenkins/10029977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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