Forum Discussion
One-way Slider triggers?
- 29 days ago
You can do it like this. Just a few triggers to track direction and previous position. No JS.
The key is that although you know where the slider is right now, you also need to know where it last was. For example, if the slider is at position 2, where was it before that? At 1, or at 3? If you create an additional variable, you can keep track of the previous position. Really, unless you are going to animate movements larger than 1 slider-step, all you need to know is the direction you are moving (up or down). Then, you add another conditional statement in your slider triggers that checks the direction of movement, well as the current position. You will need two triggers for each position, one for up and one for down, and can execute the appropriate animation in each.