How does a capacitor work in an AC circuit?

What happens when AC power is applied to the capacitor? Capacitors behave differently from resistors-in resistors, the flow of electrons is proportional to the voltage drop; in capacitors, when it [...]