Move animation to external library