Is there a way to tie a cinematic or animation to a either a progress bar or a slider bar?

A client of mine wants to have animations play with ability to rewind, play, and scrub the animation in real time with like a scrub bar. Im sure there has to be a way to do this shince you see it on games like Arkham Origins and even be a main feature of Cyber Punk 2077.