Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OWL 2 //
- $('.owl-carousel').owlCarousel2({
- nav:true,
- loop:true,
- margin:0,
- responsiveClass:true,
- responsive:{
- 0:{
- items:2
- },
- 600:{
- items:3
- },
- 1000:{
- items:7,
- loop:true
- }
- }
- });
- var owl = $('.owl-carousel-2');
- // Go to the next item
- $('.customNextBtn').click(function() {
- owl2.trigger('next.owl2.carousel');
- });
- // Go to the previous item
- $('.customPrevBtn').click(function() {
- // With optional speed parameter
- // Parameters has to be in square bracket '[]'
- owl2.trigger('prev.owl2.carousel');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement