Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiper exhibits flickering with slidesPerView, loop, and centeredSlides settings when used in conjunction with pagination #7324

Open
5 of 6 tasks
lehung1109 opened this issue Feb 21, 2024 · 1 comment

Comments

@lehung1109
Copy link

lehung1109 commented Feb 21, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-infinite-loop-forked-5vknhp

Bug description

When I set the values slidesPerView: 1.5, centeredSlides: true, loop: true, you will experience a flicker on the left side of the slide when switching from number 1 to number 3 in the pagination.

var swiper = new Swiper(".mySwiper", { slidesPerView: 1.5, centeredSlides: true, loop: true, pagination: { el: ".swiper-pagination", clickable: true, }, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev", }, });

Expected Behavior

The flicker should not occur.

Actual Behavior

The flicker appears on the left side of the slide

Swiper version

11.0.6

Platform/Target and Browser Versions

Chrome

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@shalevc1098
Copy link

did you manage to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants