Update State Properties Dynamically
Here's a simplified example of how you would update properties / values in your states. As you hit the square in the middle notice the rotation changing with each switch to that state.
#protip you can also use functions as state properties. So define the width of a state as half the height at that moment: http://share.framerjs.com/cazo7d7q66m0/
Here's another, even simpler, approach for rotation based on Koen Bok's example: http://jrdn.io/byHv