fancyapps / ui

A library of JavaScript UI components, includes the best lightbox - Fancybox5
https://fancyapps.com/
Other
785 stars 98 forks source link

last transition synced carousel #622

Closed potyomkin closed 6 months ago

potyomkin commented 7 months ago

Describe the bug

I have 2 carousels. primary and secondary. The primary one works with autoplay and the "slide" or "classic" transition. the secondary works with the same transition. the secondary carousel performs the last transition in the wrong direction.

Reproduction

https://jsfiddle.net/potyomkin/94heuzry/7/

Additional context

No response

fancyapps commented 6 months ago

This should be fixed in the last update - https://jsfiddle.net/7hdkcrg2/ Just make sure that both instances have the same value for infinite, otherwise it is expected that second instance will move the right when sliding from first to last slide, if is not infinite.