So basically, as the sodium ions move down their electrochemical gradient and as they move into the cell, that causes the inside to go from negative to positive and the outside to go from positive to negative, as shown in this diagram.