Skip to content

Is loopFillGroupWithBlank deprecated? How can I add blank slides to fill slides in the final group. #7063

Answered by james0r
james0r asked this question in Q&A
Discussion options

You must be logged in to vote

Ended up achieving it manually in the alpine component below but just surprised if this isn't achievable with swiper native properties.

 Alpine.data('benefitsCarousel', function() {
    return {
      swiperInstance: null,
      slidesPerGroup: 3,
      init() {
        const breakpointLg = window.matchMedia("(min-width:1024px)")
        const breakpointMd = window.matchMedia("(min-width:768px)")

        const breakpointChecker = () => {
          if (breakpointLg.matches === true) {
            this.disableSwiper()
            this.slidesPerGroup = 3;
            this.enableSwiper();
          } else if (breakpointMd.matches === true) {
            this.disableSwiper()
            this.s…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by james0r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant