Swiper js: destroy and init depending on screen width?
Please tell me how to solve the problem. It is necessary to initialize the slider depending on the screen width.
I made a condition, set the listinger, destroy depending on the screen width.
It seems to work, but not as it should. If you start resizing the browser window again, then destroy stops working.
To place the code, please use CodePen or similar tool. Thanks you!