Different Transitions for Prev/Next Buttons
Permalink Browser Info Environment
Michael, let me first start by saying that I love this plug-in, and have been playing around with some customization in CSS to do some further modification. Great stuff.
I'm not overly familiar with JS, however, and I'm wondering if it's possible to set the transition type to vary depending on whether the "previous" or "next" button is pressed? I currently have three slides, and the order of the slides is correctly displayed, depending on which button I press (I'm assuming that it just moves forward or back through an array). However, I have the "scrollLeft" transition type set, and regardless of which button I press the slide scrolls left. It would be nice if upon pressing the right button, the transition type could be set to "scrollRight".
Is there a way to pass multiple transition arguments in the method call?
I'm not overly familiar with JS, however, and I'm wondering if it's possible to set the transition type to vary depending on whether the "previous" or "next" button is pressed? I currently have three slides, and the order of the slides is correctly displayed, depending on which button I press (I'm assuming that it just moves forward or back through an array). However, I have the "scrollLeft" transition type set, and regardless of which button I press the slide scrolls left. It would be nice if upon pressing the right button, the transition type could be set to "scrollRight".
Is there a way to pass multiple transition arguments in the method call?
Type: | Discussion |
---|---|
Status: | New |
The solution is simple: in the options, instead of choosing SlideLeft or SlideRight, choose SlideHorizontal.
Now the slide will move in the "correct" (intuitive) direction, depending on what arrow you click.