add close icon animation