Car shifting effect? Help please!

Hello! I tell them that I am designing a car game and I am trying to imitate this effect (the car bounces forward and backward when it changes gears):

Look at the second 0:11 of this video, that’s exactly what I’m trying to imitate:

Does anyone have any idea how I could do it? Thank you very much if someone helps me!