G
G
godsplane2021-11-13 18:45:41
css
godsplane, 2021-11-13 18:45:41

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;
        }

Is it possible to somehow play the animation in reverse order when deleting the class with the animation?
that is, when the active class is removed, play the animation in reverse order, is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2021-11-13
@iiiBird

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 question

Ask a Question

731 491 924 answers to any question