Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- document.querySelectorAll('.speakers .swiper-container').forEach(function (ele) {
- let mySwiper = new Swiper(ele, {
- // Global parameters
- init: false,
- roundLengths: true,
- slidesPerView: ele.getAttribute('data-slides'),
- spaceBetween: 30,
- simulateTouch: false,
- noSwiping: true,
- resize: true,
- // Responsive breakpoints
- breakpoints: {
- 767: {
- noSwiping: false,
- loop: true,
- simulateTouch: true,
- autoplayDisableOnInteraction: true,
- slidesPerView: 1,
- slidesPerGroup: 1,
- touchEventsTarget: 'container',
- pagination: '.swiper-pagination',
- resize: true,
- },
- },
- });
- });
- });
Add Comment
Please, Sign In to add comment