Get previous index using custom Transition #507
-
Hello everyone, first of all, thanks for this beautiful library! I would to know if there is a way to get the previous index when using the start method on custom transition on the v3. The documentation tells
It seems we only get access to the new index and it would help to also have the starting index before the new one to make a smooth transition (using greensock). I managed to do that on the v2 but it seems this information is not accessible in the v3 update. I'm searching for something like this
Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can get the old index from the Controller component: function start( index, done ) {
const prev = Components.Controller.getIndex( true );
} |
Beta Was this translation helpful? Give feedback.
You can get the old index from the Controller component:
https://splidejs.com/components/controller/#getindex