Reverse the direction of motion path using javascript.

Feb 26, 2015


I created a loopy animation for a shape using motion path. However, I want to reverse the direction of the motion path, when I click on a button. Could I use a JavaScript trigger to add this functionality.

I understand that there is an option in the Animation menu to reverse the direction. But, I need to change the direction of the motion path in real-time.





3 Replies
Trina Rimmer

Hi Sunny. If I'm understanding you correctly, it sounds like you want one button that, when clicked, triggers an object to move along a motion path and then when that button is clicked again, it would move the same object in reverse along that same path? If that's correct, a True/False variable might do the trick. This discussion thread and example has an explanation and example for how to do just that.

If I've misunderstood you, please try to clarify the behavior you're looking for and I'll be glad to help.

This discussion is closed. You can start a new discussion or contact Articulate Support.