Home › Forums › CSS › Button – Fade in Fade out › Re: Button – Fade in Fade out
September 24, 2012 at 1:58 pm
#110687
Senff
Participant
I’d suggest to give them both a class like “open” or “active” (so the default state is that the door is closed and the switch is to the left).
Then the button could simply use a toggleClass('open');
to toggle it’s state.
Here’s a quick example: http://jsfiddle.net/senff/4dJW5/