added option to hide when animation completes fixed #2