jakiestfu / Blur.js

blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements.
924 stars 212 forks source link

Multiple blur targets #30

Open joetemp opened 10 years ago

joetemp commented 10 years ago

How can I have multiple targets for blurring?

onedr0p commented 10 years ago

Kinda a hackish way but you can use the setTimeout function

$('.some-class').blurjs({
                        overlay: 'rgba(255,255,255,0.1)',
                        radius:10
                });

setTimeout(function() {
                $('.some-class1').blurjs({
                        overlay: 'rgba(255,255,255,0.1)',
                        radius:10
                });
        }, 100);

I haven't found another way to do this, hopefully the dev will chime in...

CezaryDanielNowak commented 9 years ago

https://github.com/korpirkor/Blur.js I've resolved this problem in my fork.