I have read about proof of stack and proof of work. Many coins have a hybrid system like the start with a proof of work and once the specified amount of block are generated it switches to proof of stack. I am confused about how this transition happens ie. coin moving from proof of work to proof of stack algorithm. Are there any steps to do this transition or that transition happens automatically. Also, I want to understand in proof of stake stacking of coin is done?