Writing elegant animations is usually not that elegant: boilerplate code, code repetition, managing multiple animation engines and it’s hard to keep a consistent look and feel across the entire app.
This is a code example that relates to a blog post. It shows how to overcome the above problems in an elegant way.