Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <div id="started-carousel">
  2. <div id="started-panel-01">1</div>
  3. <div id="started-panel-02">2</div>
  4. <div id="started-panel-03">3</div>
  5. <div id="started-panel-04">4</div>
  6. </div>
  7. <div id="started-carousel-nav" class="flex-container">
  8. <div class="flex-item">1</div>
  9. <div class="flex-item">2</div>
  10. <div class="flex-item">3</div>
  11. <div class="flex-item">4</div>
  12. </div>
  13.  
  14. $("#started-carousel").owlCarousel({
  15. dots: false,
  16. items: 1,
  17. itemsDesktop: [1199, 1],
  18. itemsDesktopSmall: [979, 1],
  19. itemsTablet: [768, 1],
  20. itemsMobile: [479, 1],
  21. singleItem: !0,
  22. slideSpeed: 700,
  23. rewindNav: !1,
  24. touchDrag: !1,
  25. mouseDrag: !1,
  26. afterAction: t
  27. });
  28. var c = $("#started-carousel").data("owlCarousel");
  29. $("#started-carousel .next").click(function() {
  30. c.next()
  31. });
  32. var s = $("#started-carousel-nav > .flex-item").click(function() {
  33. var t = s.index(this);
  34. //c.goTo(t)
  35. $("#started-carousel").owlCarousel();
  36. $("#started-carousel").trigger("to.owl.carousel", [0, 500, true]);
  37. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement