I am trying to make a funny function that rotates an element 360. The problem is that it only executes the first time and i don't know why!
jQuery.fn.circularFun = function() {
this.stop().animate(
{rotation: 360},
{
duration: 500,
step: function(now, fx) {
$(this).css({"transform": "rotate("+now+"deg)"});
}
}
);
}
Thanks!!