$('.html').animate(
{width:'90%'},
{
duration: 3000,
step: function(now, fx) {
if(fx.prop == 'width') {
$(this).html(Math.round(now * 100) / 100 + '%');
}
}
}
);
If i have four progress-bars width individual progress-procents that i want to do a fill-animation on, like this one above, can i add the three other bars to this script or do I have to do this script four times?
And also, if i want to add some text before the (Math.round(now * 100) / 100 + ‘%’); how do I do that? Like if I want it to say “HTML 90%” instead of just “90%” as it outputs now.