Created
January 18, 2015 23:09
-
-
Save mikemcalister/d2654dabfd610fab3a42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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