Is it possible to work out the direction a slider is moved
Oct 15, 2018
I am looking to create a gallery effect where the image I want to use is wider than the slide. I want to use a slider to pan across the image - if the slider value increases the image will move towards the left revealing the right hand side of the image and vice-versa. I have been trying to use a motion path, set to move relative to the starting position each time the slider value changes. I can get this working so long as i am moving the slider towards the right. The problem i've run into is getting the backwards direction working (where moving the slider to the left reveals the left side of the image). I think I really need a way to tell if the slider value has increased or decreased - if I can do this i can select the correct motion path to pick (and move the gallery image to left or right based on this). I have tried to set up triggers to store the previous slider value and compare it to the current value, but as i need to use 'when the slider changes', the previous slider value is getting overwritten. Any help would be appreciated! May be there is a simpler way to do it?! Thanks.