I use Velocity to translate an element across the screen. Upon completion, I would like the element to return to its starting point and loop the animation, bypassing the default reverse effect that occurs during the loop.
I have my standard animation function in which I pass my values:
$(element).delay(initialDelay).velocity(animationValues, {duration: duration, easing: easing, loop: loop, complete: function() { callback(); }});
Is there a way I could achieve this functionality when translating an element, not just rotating it?
source share