Learning Android Development
Android Jetpack Compose: Animation Spec Made Easy
Make Learning Jetpack Compose Easier
Sometime back, I made a simple app that helps to plot the animation interpolator and make it easier to understand how it works. What is interpolation? Below is a simple description.
Comparison of fan animations with different interpolators.
Using AccelerateDecelerateInterpolator
on a fan makes it look more realistic (it starts and stops slowly) compare to LinearInterpolator
(all at the same speed, which makes it feel like a sudden start and stop).
But by looking at the animation is hard to predict the behavior of the interpolation accurately. However, if we plot it into a graph, we can clearly understand how it behaves. A simple example as below
To read more, you can find the article below.