run a HI-Solver from the rotator on top of the base to the nozzle pivot. there should be 1 pivot between start and end. then animate the IK target from A to B.
you got any context to that gif? looks like some kind of custom tool from Duber. probably not something that can be replicated easily. you might try 2 IK chains and swtich the arm in between them.