A
A
Antonio092020-04-30 23:49:02
css
Antonio09, 2020-04-30 23:49:02

How to change the "departure" of the popup?

now - leaves with a black background ,

I want to achieve - a black background should appear
and everything that goes on top of it

moved the necessary styles to the very bottom (for convenience)
https://jsfiddle.net/ef3xbjhw/5/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadym Masiuk, 2020-05-01
@Antonio09

Need to add to CSS:

.popup__menu--active{
    transition: background-color 1s ease;
}

It is better to change the time for example by 0.25s.
Also, an example on jsFiddle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question