UI: Move interpolation code into its own class.
Adapt Animation class for changes.