U
U
underwater2018-04-27 20:08:39
css
underwater, 2018-04-27 20:08:39

How to make such a mask?

There is a script that, when loading, I add a class with a blur effect to the entire window (first screen), but I need to add another darkening so that there is a blur + darkening as in the second screen, but I can’t resolve it through css. Is it realistic to cram everything into one class, or should we add another one and hang a blur on it?
5ae358decb052449185995.png5ae358e4689bb117386935.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Karinin, 2018-04-27
@dyfran

Use blur and background-color: rgba(0, 0, 0, 0.5)

A
Alex, 2018-04-27
@astrodeep

:after and :before not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question