Hey there, I'm currently working on an Image Gallery project. I have arranged thumbnails horizontally in a div below the main images. Take a look at this snapshot img.
My goal is to have the thumbnails scroll along with the main pictures as the user clicks on the next button. I attempted the following code:
$("#next").click(function({$(".slider_thumbnail").animate({scrollLeft: 300px})});
However, it only seems to work the first time and fails to function correctly on subsequent clicks of the 'next' button.