As you can see in this jsfiddle, I'm trying to make a toggle switch (a mute button) that
- displays the current setting, i.e. mute or unmute
- when hovered upon, displays the alternative
However, my problem is when the user clicks the button, instead of displaying the opposite button, it shows that opposite buttons hover state. I hope this is making sense, haha. Basically the interaction is:
- view button in unmute state
- hover over and see the mute icon
- click and see the unmute icon again, because it is the mute states hover image
- when the icon is not hovered upon, it displays the proper icon, i.e. mute
In the jsfiddle example, I want a click to display the button, not the :hover attribute... any help? I'm aware that this kinda thing can't be handled by css alone.. (sorry if this seems confusing, ive been working in codespeak for a while today...)
hoverstate.