jbutko
7/22/2013 - 7:34 AM

jQuery: Animate in angle

jQuery: Animate in angle

// You can specify both left and top property:

$(this).animate({left: '+=30px', top: '+=30px'}, 1000);

// In this case, the angle would be 45°.