I have a set of code which animates the background image of a container by manipulting the BackgroundPosition.
I cannot for the life of me figure out how to keep the Y Position at 0px, as my current code defaults to %50. (Meaning I get Background-Position: AnimatedValue, %50;)
Animate: function (target) {
$('#wrapper').animate({ backgroundPosition: (((width / 10) * -1) * targetIndex) }, currentDuration, easing);
},
What do I need to change?