Updated Animationclass for more performance

+ const declarations