Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Filter Multiple URL - Gain Blur and Grayscale At the Same Time
    primarykey
    data
    text
    <p>This are working code for CSS blur filter:</p> <pre><code>filter: blur(3px); -webkit-filter: blur(3px); -moz-filter: blur(3px); -o-filter: blur(3px); -ms-filter: blur(3px); filter: url('images/blur.svg#blur'); </code></pre> <p>Where blur.sv is:</p> <pre><code>&lt;svg version="1.1" xmlns="http://www.w3.org/2000/svg"&gt; &lt;filter id="blur"&gt; &lt;feGaussianBlur stdDeviation="3" /&gt; &lt;/filter&gt; &lt;/svg&gt; </code></pre> <p>And this is working for grayscale:</p> <pre><code>filter: url("data:image/svg+xml;utf8,&lt;svg xmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filter id=\'grayscale\'&gt;&lt;feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale"); /* Firefox 10+, Firefox on Android */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */ </code></pre> <p>But how to i make them grayscale and blur and the same time (especially with the URL)? I tried:</p> <pre><code>filter: blur(3px) grayscale(100%); -webkit-filter: blur(3px) grayscale(100%); -moz-filter: blur(3px) grayscale(100%); -o-filter: blur(3px) grayscale(100%); -ms-filter: blur(3px) grayscale(100%); filter: url('images/blur.svg#blur'), url("data:image/svg+xml;utf8,&lt;svg xmlns=\'http://www.w3.org/2000/svg\'&gt;&lt;filter id=\'grayscale\'&gt;&lt;feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/&gt;&lt;/filter&gt;&lt;/svg&gt;#grayscale"); </code></pre> <p>but it only gives me the grayscale without blur. Any help would be appreciated.</p> <p>EDIT: I'd like to make it work in newest major browsers, as stated by Rakesh Juyal it's working fine in Chrome but not in Firefox.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload