Battery UI Animation - Motion Token & State Machine-Controlled
So, after a brief study of the documentation of motion token and a watch of @George’s quick start video, I was able to put my battery UI animation into a live demo.
The battery percentage text, wave position, and color are controlled with a single slider in this demo. Another independent control in this demo is the Start/Stop Charging button, which fires events that trigger transitions in the embedded state machine of the animation.
Before this, I’ve never written a single line of code. Still, I was able to easily make this work with the instructions in the Motion Tokens in Code document.
Please check out the demo and leave me your feedback. Cheers!