Skip to content

Instantly share code, notes, and snippets.

Avatar
💜

Jennifer Stewart jstewart8053

💜
View GitHub Profile
View Animate Text Jquery.js
$.fn.animateText = function(delay, klass) {
var text = this.text();  
var letters = text.split('');     
return this.each(function(){    
var $this = $(this);     
$this.html(text.replace(/./g, '<span class="letter">$&</span>'));     
$this.find('span.letter').each(function(i, el){  
setTimeout(function(){ $(el).addClass(klass); }, delay * i);
});   
});   
You can’t perform that action at this time.