Progress bar

Hello,
I added a slider allowing me to control my sequencer, however, I would like my slider to evolve depending on the progress of the animation, like a progress bar ;

does anyone have any tips for achieving this? thanks in advance

Nicolas