Leg movement

I have seen a pro player who lifts his front leg up and down 2 times before he comes set with his other foot on the rubber and then throw a pitch, is this right and if so who is it or who all does this ??

Also can you do this when there is a runner on 1st lift your leg up and down before you come set and pick him off with your foot on the rubber ?