I want to create a calendar app using Slidebox.
I found this great CodePen : http://codepen.io/anon/pen/emvEt/
The problem with this code is that you have to make a slide(to) each time the user decides to slide (left or right). E.g If the user slides left, index=0, but I have to create a previousDay slide, it can’t be -1, so I put previousDay in 0 and currentDay in 1 and I make a slide(1), and it’s not very pretty for the user (he sees the slide transition).
Is there any way to:
- slide back to 1 after user initial sliding instantly without any transition
- don’t change currentIndex when sliding (overloading the slide function) so index stays on 1 and I can do what I want with 0,1 and 2 slides content ?
- create custom indexes (negative indexes ?)