D
D
Denis Bukreev2016-11-04 21:16:20
JavaScript
Denis Bukreev, 2016-11-04 21:16:20

There are plug-ins that blur the background - how do they work?

There are many plugins that blur the background: some are crooked, others are even crooked, others are all in bugs.
What mechanism do they work on? Which way to look?
There's also macOS system blur, which I assume is used on the macOS site - how do I use it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2016-11-04
@Taraflex

https://developer.mozilla.org/ru/docs/Web/CSS/filter
Or
html2canvas.hertzen.com
+
www.quasimondo.com/BoxBlurForCanvas/FastBlurDemo.html

_
_ _, 2016-11-05
@AMar4enko

Unfortunately, there is no silver bullet.
There is blur in ccs3, it blurs the element along with the content, it is slow.
There is a backdrop-filter that blurs exactly what lies under the element without touching the content - support at the level of an experimental feature.
As for how plugins work, if without CSS - I'm sure they work not for any content, but for prepared content. There is a trick with two pictures - normal and smeared, when the background is normal, and the element on top is smeared. By positioning the element on top and its background, we pretend that we are blurring the image below us
PS The backdrop-filter is used on the Apple website
d4e93ee9dda64a4496fcf793686e52e2.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question