Prince of Persia - Dash Effect (DIY)

Hello, I want to make a system similar to the one in the example video, but I don’t understand the logic. Does anyone have any idea how to delay the character while playing an animation?

SAMPLE VIDEO