I have the following layout animation. When I set Easing=“BounceIn” I get a nice bounce in animation. However, if I set EasingBack=“QuadraticOut” then BounceIn seems to stop working and appears to be something like QuadraticOut instead. I was presuming that Easing was for the “in” animation and EasingBack was for when it was reversed after the trigger is released. Or is that not the case?
I’m reversing the Translation so that the panel comes into view using <Change panel.Y="200"/>. But what I really want is something like <Change panel.Y="height(panel)"/> like you can do with <Set>, but <Change> won’t accept height(). Is there a way I can do this?
LayoutAnimation describes how an element transitions from state A to state B (and to state C, and…). It’s an animation that is always played forwards, disregarding what the state A and B (and potentially others) are; there is no implicit “forward” or “backward” for it. Consequently, adding an EasingBack on it does, indeed, “overwrite” the Easing.
In your particular use case though, you don’t really need LayoutAnimation. You already have Translation, which then is the right node to animate. The different forward and backward easings can be put directly on the Change, since there we have an explicit animation between exactly 2 states.