I have elements with 2 classes (fade and hidden)
<div id="example" class="fade hidden"></div>
.fade {
opacity: 0;
-webkit-transition: opacity .15s linear;
-o-transition: opacity .15s linear;
transition: opacity .15s linear;
}
.hidden {display: none;}
When clicked, a class gets added (.in and .shown)
.fade.in {
opacity: 1;
}
.shown {display: block !important;}
My issue is, by doing the display: block, there is no animation with opacity. Just the element showing in full.
Anyway to keep the animation fade with opacity?