A bit of technology

news, thoughts, articles and a bit of fun!

Web page blur with CSS and a bit of JavaScript

, , , , , , , , , , ,

Actually, you can't really blur web page in any browser except for IE6/7 - there is NO way to blur web page with CSS/JavaScript and even Canvas tag will NOT help. Too bad...

But I've found a workaround which will do the job just fine for some cases. My method adds CSS3 text-shadow property to blurred elements with the same color as text color is. Then text color "blurred" a bit to the background color. The last thing left is to find all IMG tags, replace them with Canvas, draw and blur these images inside canvas. I did not do the last step because there are plenty of code for that in Google.

Oh, and the result! Here it is (: Visit the page with Opera/Chrome/FF/Safari, click on the text, enjoy the sources!

The Pirate Bay appeal is postponedLatvian RIAA/MPAA analogue is dismissed

Comments

Lorenzo CelsiLorenzoCelsi Friday, November 13, 2009 10:28:18 AM

Technically it is interesting but I find the resulting effect quite annoying for the reader, it makes your eyes try to focus the blurred text instinctively and diverts attention away from the pop-up over it, which is also difficult to read because of the blurred background. From the usability point of view I guess this "effect" it is a counter productive overkill.

Aux Friday, November 13, 2009 12:44:07 PM

Yep, I was looking a way to make a proper useful blurring, but currently there is no any...

Lorenzo CelsiLorenzoCelsi Friday, November 13, 2009 12:48:48 PM

You look at my blog post titles, they are "blurred". The use of this kind of things is merely graphic and then limited because it can be annoying.

Unregistered user Saturday, November 28, 2009 11:52:35 AM

der writes: der

Unregistered user Tuesday, November 9, 2010 11:02:02 PM

Henning writes: Why don't you use rgba(0,0,0,0) for text-color so that just the shadow is visible?

Write a comment

New comments have been disabled for this post.