Understanding complex animations

Hey guys I have a question that I really can’t wrap my head around, how do you create like interactive animations? For example let’s say I want to create a gas pedal and a speed odometer, and when the user clicks the pedal the odometer moves as if accelerating.

The odometer is sinple but what my brain can’t understand is how would you animate a gas pedal being pressed down.

Or another example a watch being turned 360 or a statue holding a ball and it rotating .

Anyone have any good resources that really explain how this all works , I can’t find anything when I just look up animations
Was this page helpful?