splide icon indicating copy to clipboard operation
splide copied to clipboard

Jump between first and last slide with infinity

Open ZtarmonT opened this issue 3 years ago • 0 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

v3.6.8

Description

I created an example https://codepen.io/docjers/pen/XWEeWjm with all current slide settings, the problem is that when we use type: 'loop', autoWidth: true and updateOnMove: true, there is a jump between first and last slide, how can I fix this moment? I already tried everything and did not find a solution. The task of the slider is to change the width of the inactive and active slide

Reproduction Link

https://codepen.io/docjers/pen/XWEeWjm

Steps to Reproduce

  1. scroll from the first slide to the last and from the last to the first

Expected Behaviour

  1. it is necessary that when moving from the first to the last or from the last to the first slide, there would be no jump visible, it feels like the slider specifically rewinds the entire carousel to the first or last slide
  2. When the slider is loaded for the first time, the slider is not in the middle

ZtarmonT avatar Aug 01 '22 15:08 ZtarmonT