This animation uses an Inverse Kinematics solver (bones) to solve the movements of the various parts. The parts are: 1. Piston, 2. Connecting rod, 3. Crankshaft.
Because the parts are all connected via a bones system, rotating the crankshaft moves all the other parts.