Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Button – Fade in Fade out Re: Button – Fade in Fade out

#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/