Different image when dragging to the left or to the right

(Arnout) #1

Hi all,

I’ve searched for a solution, but could not find an answer yet. I hope you can help me. I am looking for a solution to get a different image (say a man looking to the left) when the element is dragged to the left, and then when it’s dragged to the right the image changes.

Maybe very simple for the scripters amongs us?

Thanks for your help!


You can control a timeline (which would show or hide your images) by setting an element to ‘control timeline position’.

So first setup your timeline which shifts from one image to another, then set that image to have these properties in the Action inspector:

You might need to futz around with the ‘speed’ to get it work just right, but you shouldn’t need any JavaScript:

(Arnout) #3

Hi Daniel,

Thank you so much for your quick response. Really appreciate it!