<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sergio_follean</title>
    <description>The latest articles on DEV Community by sergio_follean (@sergio_follean).</description>
    <link>https://dev.to/sergio_follean</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F229058%2F4c08f6f3-0781-4cbb-a52f-62d6f5e93b7f.png</url>
      <title>DEV Community: sergio_follean</title>
      <link>https://dev.to/sergio_follean</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sergio_follean"/>
    <language>en</language>
    <item>
      <title>Background blur filter - backdrop-filter: blur () is already in operation, but</title>
      <dc:creator>sergio_follean</dc:creator>
      <pubDate>Fri, 13 Sep 2019 14:34:40 +0000</pubDate>
      <link>https://dev.to/sergio_follean/background-blur-filter-backdrop-filter-blur-is-already-in-operation-but-657</link>
      <guid>https://dev.to/sergio_follean/background-blur-filter-backdrop-filter-blur-is-already-in-operation-but-657</guid>
      <description>&lt;p&gt;Already, many browsers include support for background effects of the backdrop-filter, and they can be used to create the blur effect like Apple (see iOS, MacOS).&lt;/p&gt;

&lt;p&gt;How it works?&lt;/p&gt;

&lt;p&gt;For the block to be blurred, you need to add a style:&lt;/p&gt;

&lt;p&gt;backdrop-filter: blur(degree of blur);&lt;/p&gt;

&lt;p&gt;The simplest example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2Fv4rmz1v%2FScreenshot-1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2Fv4rmz1v%2FScreenshot-1.png" alt="example1"&gt;&lt;/a&gt;&lt;br&gt;
But does it look like Apple? In the screenshot we have 10 pixels blur. Add a little more blur - 20 pixels, and what do we get:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2FDCHrDBb%2Fimg2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2FDCHrDBb%2Fimg2.png" alt="example2"&gt;&lt;/a&gt;&lt;br&gt;
We’ll get something strange, at the edges of the block the blur disappears altogether.&lt;/p&gt;

&lt;p&gt;Why it happens? — It's hard to tell a person who is not versed in browsers.&lt;/p&gt;

&lt;p&gt;Is there a solution to this? — Yes, it is rather strange and simple, but it works.&lt;/p&gt;

&lt;p&gt;By a long search for a solution on the Internet, it was impossible to stumble upon something about this filter this year. After about a dozen decisions of the type to create an after element with a size larger than a block, blur it, and give its parent overflow: hidden, the following was noticed:&lt;/p&gt;

&lt;p&gt;Adding a shadow to the object, it expands the blur area, and the idea arose to make a transparent shadow, this turned out to be the right decision, and the result was as expected:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2F2gV2QjG%2Fimg3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.ibb.co%2F2gV2QjG%2Fimg3.png" alt="example3"&gt;&lt;/a&gt;&lt;br&gt;
I wish you successful use. look at the source code of the solution and play with it here: &lt;a href="https://codepen.io/sergey-popovich/pen/dybepBv" rel="noopener noreferrer"&gt;https://codepen.io/sergey-popovich/pen/dybepBv&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>backdropfilter</category>
      <category>backdrop</category>
      <category>blur</category>
    </item>
  </channel>
</rss>
