<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.18/jquery.touchSwipe.min.js"></script>
<script>
$( document ).ready(function() {
	 $('.carousel').carousel({
		interval: 350 * 10,
	 });
	$(".carousel").swipe({
	swipe: function(event, direction, distance, duration, fingerCount, fingerData) {
	  if (direction == 'left') $(this).carousel('next');
	  if (direction == 'right') $(this).carousel('prev');
	},
	allowPageScroll:"vertical"
	});
});
</script>

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *