Great optimization on the animation. Before the step() function was called O(2n) times, because the pan offset animation was done on X and Y. Now, animation runs only for X or only for Y (depending on who has max offset) and the other value is calculated via a simple linear equation.
Great optimization on the animation. Before the step() function was called O(2n) times, because the pan offset animation was done on X and Y. Now, animation runs only for X or only for Y (depending on who has max offset) and the other value is calculated via a simple linear equation.

ruisoftware/jquery-rsSlideIt,ruisoftware/jquery-rsSlideIt