Answer the question
In order to leave comments, you need to log in
Is it possible to somehow play the animation in reverse order when deleting the class with the animation?
.ref-filter_wrapper {
margin: 0 0 24px 0;
height: 0;
opacity: 0;
overflow: hidden;
transform: translateY(-50px);
&.active {
animation: filter 0.5s forwards;
}
Answer the question
In order to leave comments, you need to log in
no. but you can add a new class when you remove the active class, which will have a different animation. and then delete this class for a new animation by timeout
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question