Added css keyframe animations to view on enter and leave