jakiestfu / Blur.js

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

More Methods #3

Open emcniece opened 11 years ago

emcniece commented 11 years ago

I am finding that attempting to blur multiple images in direct succession (like in a jQuery.each() function) results in the first image failing. Since this is the case, it would be very useful to have an onFinished() method for the plugin to provide some form of notification as to when it is ok to blur another image. Any thoughts?

danielbenjamins commented 11 years ago

I'd like to use multiple blurred images as well, for example in my portfolio.

andrewlphilpott commented 10 years ago

No word on this? It's been almost a year and a half…

Nodman commented 9 years ago

For those who looking for onFinished() method, you can use jquery deferreds. For example by adding options.callback() in blur.js, you can then call this method when you blurring image and make .resolve() for your defferd object. screenshot 2015-02-09 22 32 37 screenshot 2015-02-09 22 33 29