I have some span tags:
<span data-w="560"></span>
<span data-w="340"></span>
<span data-w="120"></span>
I have a jQuery code to animate each span to reach a target width preset inthe data-w attribute:
$(document).ready(function(){
$('span').each(function() {
$(this).animate({width: $(this).attr('data-w') + 'px'}, 1000);
});
});
here everything works just fine.
Now I want to make each span animate alone, and not all of the spans together.
How to do it? may be with queue()? how?
Thanks.
Mayby you can create your own queue: