Blur.js: Produce psuedo-transparent blurred elements over other elements.
blurjs.com
blurjs.com
Unfortunately, browser support of less common SVG features is spotty – either missing or unoptimized.
.blur {
background-image: url('data:image/xml+svg;utf8,
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter id="f1">
<feComponentTransfer>
<feFuncR type="table" tableValues="0.5 1"/>
<feFuncG type="table" tableValues="0.5 1"/>
<feFuncB type="table" tableValues="0.5 1"/>
</feComponentTransfer>
<feGaussianBlur stdDeviation="5" />
</filter>
</defs>
<image x="0" y="0" width="300" height="80"
xlink:href="http://background.png"
filter="url(#f1)" />
</svg>
');
}
(expanded for clarty, and I didn't test it so it may be buggy/not syntactically correct).You can off course generate all that in JS and parametrize it.
It should work in Chrome, but won't in IE9. No idea for other browsers.
Superb!
http://www.swissariknife.com/focus
I added keyboard short-cuts to narrow or widen the number of lines that are 'clear' at a time. You can scroll through while you read or use the arrow keys.
I ended up just hard-coding it using HTML spans and text-shadows to demonstrate the effect. This is NOT an actual solution, just an experiment.
Warning: This may appear way differently in different browsers and possibly not at all. The effect generally works in FF/Safari/Chrome.
Might try to throw together something with blur.js now.
Instructions: http://css-plus.com/examples/2010/05/how-to-add-a-gaussian-b...
http://html5-demos.appspot.com/static/css/filters/index.html
Otherwise, nice little effect, loads sort of slow (not sure if thats the javascript or the website).
That having been said, I don't really consider "it's not on GitHub" to be a valid criticism. I certainly understand developers wanting to use their own solutions or that they might have hurt feelings after GitHub's handling of their intrusion (not that I care, just saying based on the number of HN posting, many people seem to)
For those who hate on compiz, etc, for transparent windows and readability, blur is the solution. As I can see from the demos, it clearly is true in the browser as well (well, why wouldn't it be).
100% opaque is another solution.