Adding fadding effect and smothing end in animation