ocelotconsulting / ocelotconsulting.github.io

The Ocelot Consulting LLC Public Website
http://www.ocelotconsulting.com
6 stars 11 forks source link

Investigate Dynamic Loop Setting for Swiper #145

Closed nerddtvg closed 7 months ago

nerddtvg commented 1 year ago

Disabling Swiper's loop based on slidesPerView works fine, but for smaller screens we may have more than enough slides to support it. Can this by dynamic based on the breakpoints? The breakpoints parameter won't support it, so we would need to find an event to update on.

https://swiperjs.com/swiper-api#param-breakpoints

Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which do not require different layout and logic, like slidesPerView, slidesPerGroup, spaceBetween, grid.rows. Such parameters like loop and effect won't work

nerddtvg commented 7 months ago

Closing because this isn't possible.