Toggle Switch DEMO - using motion paths and toggle variable.
Sep 02, 2015
As a closet animator, the new Motion Path feature introduced with SL2 was the very first thing I tinkered with.
While the first model worked well and was okay for a single slide interaction, it's been in the back of my mind how to improve the behavior for use as a global widget.
It's a simple button that when clicked follows an animation path. After completing the path, another object's state (background) changes its visual appearance. When clicking the button again, it reverses its path to its original starting position and the background changes its state back to original.
Combining those two animation paths with a T/F variable and a Toggle trigger, this little button widget can do lots of cool things by simply evaluating the value of a single variable or when one of the animation paths complete!
*since this uses the motion path animation, the source file is only for version SL2.