Niels van Hoorn
Niels van Hoorn
Using `undefined` is the same as not specifying a duration, which defaults to a duration of 400ms
I looked a bit further and with the current setup it's not really possible to calculate the natural duration easily. Would you be interested in a PR that fixes this?
Here's an example how to do that: https://framer.cloud/lnRrn/
> What about using animateTo and switchTo for both, states and properties? I like the Idea, but how would `animateToNextState` fit into it?
> How are CSS changes handled when state is set to initial? Initial should be the the state that the layer is in after the constructor, so setting a property...
> Quick question, do we really need the key "options"? Yes we do. Not only can the options potentially clash with properties on the layer, we also need a hook...
> So is it possible to return to the initial or default state without blowing > away my font settings I've set in the style property? > > That's horrible...
> What about an animiateFrom? Something I abused thoroughly in gsap. It's not quite as needed in framer since we have states, but it could be useful for setting up...
> Will changing state property values after the fact impact the state changes when they happen? For added states: definitely, for the initial state my first reaction is: no, because...
I've updated the proposal today, and changed a few things: - Using `animateTo` for properties _and_ state switches - Changed `animateToNextState` to `animateToNext` - Changed how we switch instantly to...