Here we have made the magnetic field visible. It moves in loops down through the core of the lens (its? direction is indicated by the yellow markers).
As the magnetic field is increased (by passing more current through the electro-magnet), the field expands and has the effect of moving the electrons more tightly together.