If you just switch elements, you do not need two classes; you just need one class (βhideβ) that you add and remove for each element. When you hide an element, you add the "hide" class to it, and when you show the element again, you delete the "hide" class.
However, if you really need two classes, I have had success with something like this:
.show{display:"";}
A blank value tells the browser to ignore this property and returns to its default value.
source share