add animation to progress bar