Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
1.0 kB
3
Indexable
Never
/**
		 * Sliders
		 */
		
		var postsSlider = new Swiper('.posts-slider .elementor-widget-container',{
			/*scrollbar: {
				el: '.swiper-scrollbar',
			},*/
			pagination: {
				el: '.swiper-pagination',
			},
			autoplay: {
				delay: 5000,
			},
			simulateTouch:false,
			// draggable: false,
			slidesPerView: 1,
			breakpoints: {
				500: {
					slidesPerView: 2,
				},
				768: {
					slidesPerView: 3,
					
				},
				1025: {
					slidesPerView: 4,
					// simulateTouch:false,
				},
				1280: {
					slidesPerView: 5,
				},
			}
		});

		var lastProjectsImgs = new Swiper('.latest-projects-imgs',{
			draggable: false,
			effect: 'fade'
		});
		
		var lastProjects = new Swiper('.latest-projects',{
			controller: {
				control: lastProjectsImgs
			},
			navigation: {
				nextEl: '.latest-slider-nav-next',
				prevEl: '.latest-slider-nav-prev',
			},
			
		});
		
		var serviceProjects = new Swiper('.service-projects',{
			navigation: {
				nextEl: '.swiper-button-next',
				prevEl: '.swiper-button-prev',
			},
		});