Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // OWL 2 //
  2. $('.owl-carousel').owlCarousel2({
  3. nav:true,
  4. loop:true,
  5. margin:0,
  6. responsiveClass:true,
  7. responsive:{
  8. 0:{
  9. items:2
  10. },
  11. 600:{
  12. items:3
  13. },
  14. 1000:{
  15. items:7,
  16. loop:true
  17. }
  18. }
  19. });
  20.  
  21. var owl = $('.owl-carousel-2');
  22.  
  23. // Go to the next item
  24. $('.customNextBtn').click(function() {
  25. owl2.trigger('next.owl2.carousel');
  26. });
  27. // Go to the previous item
  28. $('.customPrevBtn').click(function() {
  29. // With optional speed parameter
  30. // Parameters has to be in square bracket '[]'
  31. owl2.trigger('prev.owl2.carousel');
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement