Why not a plugin like (small correction void should be a string)

$.fn.delay = function(delay){
if(typeof delay==="undefined") delay = 1000;
return this.animate({"void":0}, delay);
}

This way you can call it like this

$('#element').delay().effect('pulsate');

Reply via email to