I’m trying to move the images inside a div to the left one by one.But i’m only able to move one image on click of a button.I’m looking to slide the images inside a div.
Here is my code on jsfiddle.
http://jsfiddle.net/K2JBg/
I’m trying to move the images inside a div to the left one by
Share
jsFiddle demo
-300px * the current Counter value.After each click counter will increase, but once it reaches the number of images
4it will jump back to value0–300px * 0 = 0and that will slide your gallery back to ‘0px’ left.jQuery:
Modified CSS: