I needed the same thing, the solution was to use a cycle and scroll through the plugins:
"# gallery" is a container with all the img tags in it.
$(function() { $('#gallery').cycle({ fx: 'scrollHorz', timeout: 0, next: '', prev: '', speed: 300, nowrap: 0 }); }); $(function() { $('#gallery').swipe({ swipeLeft: function() { $('#gallery').cycle("next"); }, swipeRight: function() { $('#gallery').cycle("prev") }, threshold: { x: 15, y: 99999 }, preventDefaultEvents: false }); });
It works, but not like a photo library, because images are not dragged to 50% of the width before changing. as in crmunro solution, but based on jQuery and plugins.
source share