AnythingSlider icon indicating copy to clipboard operation
AnythingSlider copied to clipboard

Easing "easeInOutBack" on 1st slide doesn't work

Open zumajoe opened this issue 15 years ago • 3 comments

If you apply easing: "easeInOutBack", the first slide (once you click through all slides and it returns to the first) will not perform the easing- makes the flow of things seem odd.

zumajoe avatar Mar 03 '11 03:03 zumajoe

Hi Zumajoe!

Hmm, I don't think that will be an easy fix. The main problem is that the script uses scrollLeft to position the panel in view and scrollLeft doesn't allow negative numbers which it would need in order to perform that particular easing.

I haven't looked at why going past the last slide also causes the same sudden animation stop. But I'll look into it.

The next best solution would be to turn off the infinite slides (set "infiniteSlides : false" in the options), if you are willing. It'll just rewind when it hits either end.

Mottie avatar Mar 03 '11 05:03 Mottie

Fixed in version 1.5.8. It's now part of the demo (first slider). Thanks again!

Mottie avatar Apr 02 '11 01:04 Mottie

I changed the script again in version 1.5.13. The slider no longer uses scrollLeft to position the visible slide. It now uses left so this problem no longer occurs as well as a left margin is no longer required.

Mottie avatar May 22 '11 05:05 Mottie