So I have a web app where each panel is 480×300 (-20px for status bar) and two navigation buttons to scroll left or right.
Now everything works great, except when you continue scrolling past the max panels displayed, it keeps going.
I was wondering if it is possible to stop the Jquery .animate() after it reaches the last panel.
Hiya another demo http://jsfiddle.net/qpHSw/ or http://jsfiddle.net/yEsDQ/ or http://jsfiddle.net/yEsDQ/show
this sample dynamically counts your li in ul and adjust the animate according.
code