add animation on the view