A
A
Anton M2017-08-15 15:40:16
JavaScript
Anton M, 2017-08-15 15:40:16

How to disable the slider at a higher resolution?

The slider is not needed at a resolution of 750px.
The documentation says about breakpoints. It turns out to display all the necessary slides at a given resolution with the slidesPerView command: 4. Then the question arises of how to block the slides so that they cannot be scrolled.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Shakirov, 2017-08-15
@Bluorenge

As an option, you can track the resize of the window and, if necessary, do destroy, or if you need a slider (and it has not been created), we create it.

A
alexandzolotarev, 2017-08-15
@alexandzolotarev

MySwiper.destroy(deleteInstance, cleanupStyles);
idangero.us/swiper/api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question