Job hopping comes with significant salary raise, that's usually the point. If your hop doesn't come with 20%+ raise, you just hopped wrong. After 1.5-2 years repeat. It compounds.
It's not really skill dependent. I mean of course you need some skill, but the point is that the raise comes for the skill you already have, why the employers are willing to shell out more.