I am using Velocity to translate an element across the screen. Upon completing, I would like the element to return to its origin point and loop the animation, bypassing the default reverse effect that occurs while looping.
I have my standard animation function into 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 with translating an element as opposed to just rotating it?