I’m trying to add some effects with jQuery to splitted words, but I don’t really know how to handle this.
My code starts as it follows:
$(window).load(function() {
var str = $("#animated_text h1").text();
var substr = str.split(' ');
$.each(substr, function(index, value) {
value.fadeIn();
value.animate({});
});
});
Thanks for every suggestions
You have to split words and create element for each word. Please find the demo here http://jsfiddle.net/diode/DLx2A/21/