flickity-fade icon indicating copy to clipboard operation
flickity-fade copied to clipboard

wrapAround incompatibility with a 2-slide carousel

Open jnicol opened this issue 5 years ago • 30 comments

When there are two slides and wrapAround option is true, the fade is mucked up. It looks like the opacity values are being set as a negative number for one slide (0 ... -1) and values above 1 for the other slide (1 ... 2). The result is that the carousel immediately jumps to the next slide rather than fading.

Test case: https://codepen.io/jnicol/pen/daVWQB

If there are 3 or more slides then the issue is not present.

jnicol avatar Feb 06 '19 00:02 jnicol