splide icon indicating copy to clipboard operation
splide copied to clipboard

how to disable transition?

Open juliopimentel opened this issue 5 years ago • 5 comments

Hi guys! I know this isn`t exactly an issue, but how can I disable slide or fade transition, I want no transition when the slide changes, in few words, only jump withouth any effect between slides.

Thanks in advance!

juliopimentel avatar Dec 21 '20 20:12 juliopimentel

This isn't the most elegant solution, but within my options, I set type to 'fade' and easing to 'steps(0, start)'. Technically, the steps timing function should take a positive integer, but by setting it to 0 you in effect get no transition.

robbybuckets avatar Dec 22 '20 04:12 robbybuckets

Thanks! I already tried thar but with type:fade, one lose the "loop" property, and speed it 0 doesnt seem to run it, I ended up just setting the speed to 0 a run my functions with .on('move') and on.('moved') (:

juliopimentel avatar Dec 22 '20 17:12 juliopimentel

I also noticed setting the speed to 0 caused the loop to break. However, setting the speed to 1 solved that issue for me. The slides loop continuously and there is no perceivable transition between slides.

johnson-jd avatar Dec 22 '20 23:12 johnson-jd

Exactly!

Btw Johsnon, I opened a new issue, could you perhaps give it a look? thanks! (:

juliopimentel avatar Dec 22 '20 23:12 juliopimentel

Close the issue due to the major version update. Feel free to create a new issue or open a new discussion.


Setting speed to 0 now officially in v3 (type needs to be slide or loop).

NaotoshiFujita avatar Oct 09 '21 14:10 NaotoshiFujita