You can use a lattice, for creating a such an effect and you can use set driven key to drive the on with the off and vice versa