i'm using jquery to pulsate text. all fine - but i can't get my head around something: i would only like to pulsate x-number of times and then stop. i'm using the folling code to pulsate a class:
$(document).ready(function() {
function pulsate() {
$(".pulsate").
animate({opacity: 0.2}, 1000, 'linear').
animate({opacity: 1}, 1000, 'linear', pulsate);
}
pulsate();
});
Any ideas how this can be achived? probably one line of code...?!
thanks, mark