Guest User

Untitled

a guest
Jan 21st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $(function () {
  2. document.querySelectorAll('.speakers .swiper-container').forEach(function (ele) {
  3. let mySwiper = new Swiper(ele, {
  4.  
  5. // Global parameters
  6. init: false,
  7. roundLengths: true,
  8. slidesPerView: ele.getAttribute('data-slides'),
  9. spaceBetween: 30,
  10. simulateTouch: false,
  11. noSwiping: true,
  12. resize: true,
  13. // Responsive breakpoints
  14. breakpoints: {
  15. 767: {
  16. noSwiping: false,
  17. loop: true,
  18. simulateTouch: true,
  19. autoplayDisableOnInteraction: true,
  20. slidesPerView: 1,
  21. slidesPerGroup: 1,
  22. touchEventsTarget: 'container',
  23. pagination: '.swiper-pagination',
  24. resize: true,
  25. },
  26. },
  27. });
  28.  
  29. });
  30. });
Add Comment
Please, Sign In to add comment