Added animation to the bar.