Skip to content

Instantly share code, notes, and snippets.

@mikemcalister
Created January 18, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemcalister/d2654dabfd610fab3a42 to your computer and use it in GitHub Desktop.
Save mikemcalister/d2654dabfd610fab3a42 to your computer and use it in GitHub Desktop.
// Owl Carousel
function run_owl() {
// Initialize each carousel independently
$( ".owl-carousel" ).each( function() {
var $carousel = $( this ); //.owl-carousel
var $gallery = $( this ).parent(); //.owl-gallery
$carousel.owlCarousel( {
items : 1,
navSpeed : 500,
paginationSpeed : 400,
autoWidth: true,
margin : 15,
loop : true,
center : true
} );
});
}
run_owl();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment