Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
None
Description
SmoothedAnimation is hard-coded to use an InOutQuad easing curve. This results in an inconsistent look when using SmoothedAnimation together with other NumberAnimations that don't need smoothing where the curve is for example InOutExpo (based on a design decision).
If the math to smooth other curve types is too complex an alternative would be to use curve blending. The solution should support the use-case of changing the to-value of the animation ~20 times during the animation, so we might have to not do a complete blending of all curves but pre-compute each curve when changed and only keep the previous curve around.
Ideally, from an API standpoint, if we can support any kind of curve using curve blending the feature would merge into regular NumberAnimation by adding a new boolean property "smooth", that's disabled by default to keep the current behavior.