HTML: <div class="display-none">
CSS: .display-none { display: none; }
JS: removeClass('display-none')
and addClass('display-none')
Is it possible to create a "fade-in" and "fade-out" effect when div.display-none loses/get the display-none class?
I can make this only work when working with CSS effects, like hover:
.random-btn {
background-color: red;
transition-timing-function: ease;
transition-delay: 1s;
transition-duration: 0.5s;
}
.random-btn:hover {
background-color: blue;
}