Skip to content

Get previous index using custom Transition #507

Answered by NaotoshiFujita
jcsuzanne asked this question in Q&A
Discussion options

You must be logged in to vote

You can get the old index from the Controller component:

function start( index, done ) {
  const prev = Components.Controller.getIndex( true );
}

https://splidejs.com/components/controller/#getindex

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jcsuzanne
Comment options

@NaotoshiFujita
Comment options

Answer selected by NaotoshiFujita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants