The transition from classical physics to quantum mechanics has been mysterious. Here, we derive the space-independent von Neumann equation for electron spin mathematically from the classical Bloch or Majorana--Bloch equation, which is also derived. Subsequently, the space-independent Schr\"odinger--Pauli equation is derived in both the quantum mechanical and recently developed co-quantum dynamic frameworks.