This is fine, but wouldn't having a function inside of the animation() function be shared among all other objects of the DI?