Spin-transfer torque for continuously variable magnetization