animate a progress bar