Input: yellow shaft.
The axial force of a spring and the orange driving arm are in balance. An overload condition (represented by the pink slider position) overcomes the spring force to slide the green gear out of engagement.
The animation has a weakness: the spring does not rotate as in reality.