JavaScript   

Fix screen width calculation issue in swiper slider

let customSlider = new Swiper('.post-slider', {
	direction: 'horizontal',
	spaceBetween: 12,
	slidesPerView: 3,
	pagination: {
		el: '.swiper-pagination',
	},
	on: {
		init() {
			setTimeout(() => {
				window.dispatchEvent(new Event("resize"))
			}, 200)
		},
	},
});
Need Professional Support for Your Website Problems?

Whether you're facing website issues or struggling with code implementation, our team is here to assist. Hire us to get your website back on track.

Hire Us