Skip to content

Instantly share code, notes, and snippets.

@jlazanowski
Last active December 21, 2015 11:59
Show Gist options
  • Select an option

  • Save jlazanowski/6302505 to your computer and use it in GitHub Desktop.

Select an option

Save jlazanowski/6302505 to your computer and use it in GitHub Desktop.
Carousel Swipe support with Hammer.js
<script>
$(document).ready(function() {
$('#myCarousel').hammer().on('swipeleft', function(){
$(this).carousel('next');
})
$('#myCarousel').hammer().on('swiperight', function(){
$(this).carousel('prev');
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment