add animation for visible hide