improved fade in animation for newly added content
code refactoring for animation of CanvasElement