refactor anims to take params in constructor