You need to save the current state of the property that you are animating in the property of the element. Otherwise, $ .animate will consider the property to be 0 each time the animation starts. A revival from 0 to 0 will not revive anything.
:
$.fx.step.textShadowBlur = function(fx) {
$(fx.elem)
.prop('textShadowBlur', fx.now)
.css({textShadow: '0 0 ' + Math.floor(fx.now) + 'px black'});
};
setInterval(function() {
$("#seconds").animate({textShadowBlur:20}, {
duration: 300,
complete: function() {
$("#seconds").animate({textShadowBlur:0}, {duration: 300});
}
});
}, 1000);
:
http://jsfiddle.net/ANs92/16/
: setInterval :
http://bonsaiden.github.com/JavaScript-Garden/#other.timeouts β setInterval
setInterval , , .