What happens?
When emmbrane is depolarized, sodium and potassium channels in the membrane open. Sodium rushes in, due to concentration and electrical gradient. At the peak of the action potential, sodium channels close, potassium channels remain open. Potassium channels (in the beginning) make little difference, but now, potassium gets pumped outside the cell, as a result of concentration and electrical gradient.