Guest User

Untitled

a guest
Feb 18th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. $(document.documentElement).keyup(function (event) {
  2.  
  3. var owl = $(".active .owl-carousel");
  4.  
  5. // handle cursor keys
  6. if (event.keyCode == 37) {
  7. // go left
  8. owl.trigger('prev.owl');
  9. } else if (event.keyCode == 39) {
  10. // go right
  11. owl.trigger('next.owl');
  12. }
  13. });
  14.  
  15. var projecten = $(".owl-carousel");
  16.  
  17.  
  18. projecten.each(function() {
  19.  
  20. var $this = $(this);
  21.  
  22. $this.owlCarousel({
  23. responsiveRefreshRate: 1,
  24. loop: true,
  25. margin: 10,
  26. responsiveClass: true,
  27. items: 1,
  28. nav: true,
  29. dots: false,
  30. autoplay: false,
  31. autoplayTimeout: 6000,
  32. smartSpeed: 750,
  33. mouseDrag:'true',
  34. pullDrag:'true',
  35. animateIn: 'fadeIn',
  36. animateOut: 'fadeOut'
  37.  
  38.  
  39. });
  40. });
Add Comment
Please, Sign In to add comment