We’ve been working on a new API for handling states and animations, and we love for you to try it out! It will be automatically available in new projects created with the latest beta.
This is how you define a state animation in the new API:
layer = new Layer
layer.states.a = x: 200
You can find all the changes listed here: https://github.com/koenbok/Framer/pull/420
The old API should keep working, but please try to upgrade some old projects to see if we haven’t missed anything. To do so, choose “Update Framer Library” from the File menu.
Beware that there are two breaking changes, so be sure to update that in your code after you upgrade your project.:
layer.states.current has been renamed to layer.states.current.name
layer.states.previous has been renamed to layer.states.previous.name