Below find an animation of the electric (black) and magnetic (multicolored) fields in a simple LC oscillator. This one consists of nothing more than a capacitor in series with a one-loop inductive coil. If you equate the voltage across the capacitor* with that across the inductor**, you get the second order differential equation of a harmonic oscillator. Like a spring or torsional pendulum, this predicts the ``sloshing'' of energy between capacitor electric fields and inductor magnetic fields with a repeat period of 2π(LC)1/2 seconds.
* (namely VC = Q/C,
where Q is charge and capacitance C = Q/V ~ εo
PlateArea/Spacing.)
** (namely VL=-L Q'', where Q''=d2C/dt2
and for an N-turn
loop of radius r, inductance
L=NΦB/I~Nμoπr/2)
A careful look at the animation will show this to be happening with reversals of the +/- charge on the capacitor, and the N/S poles of the magnetic field, taking place at well-coordinated times. The viewpoint shifts rightward each time energy goes into up or down electric fields, and leftward as energy goes into front or back pointing magnetic fields. Here are a few puzzlers...