Also supports swiping on touch devices. A vanilla JS (no-jQuery) version can be found here: http://codepen.io/leemark/pen/DLgbr