A
A
Artyom Ryazhenkov2018-02-18 10:21:33
css
Artyom Ryazhenkov, 2018-02-18 10:21:33

How to blur the background of an element?

The bottom line is that there is an element (let's say, with text or a portfolio, it doesn't matter). There is a picture against its background, and it is necessary that one of its upper edges smoothly merge with the background of the page itself.
The picture is not particularly complicated, this very top edge is rather monochromatic, but with overflows on the sides, it catches the eye.
How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Odisseya, 2018-02-18
@Wemos

You can make 2 layers with a picture, the bottom layer (positioned under the first) is blurred using filter: blur();
Example: https://codepen.io/anon/pen/aqqoXd
The blur radius can be increased by stretching the bottom layer: https://codepen.io/anon /pen/oEENjw

O
Oleg, 2018-02-18
@politon

May
https://jsfiddle.net/Politonius/epLua0rv/15/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question