News for hackers. Stuff that matters.
Re:Frosted glass effect with CSS and SVG by joegaudet on Thursday November 14, 2013 @01:43AM (#6730976)
I've seen this a bunch of places, until it's done real time with arbitrary images + content, I don't really see the value.

Would be cool if we could do it for translucent toolbar etc.

Re:Frosted glass effect with CSS and SVG by russellsprouts on Thursday November 14, 2013 @02:07AM (#6731039)
It's difficult, because you cannot see the pixels in an HTML element's rendering with JavaScript. If you could copy a link to a canvas, then you could see if it has been previously visited, for example. So, canvases would not work.

I may be possible with SVG filters or WebGL, but that also has security implications. It's possible to read cross-origin content using timing attacks and filters. http://www.contextis.com/files/Browser_Timing_Attacks.pdf

Re:Frosted glass effect with CSS and SVG by peterhunt on Thursday November 14, 2013 @03:00AM (#6731196)
Re:Frosted glass effect with CSS and SVG by zuppy on Thursday November 14, 2013 @04:18AM (#6731420)
Here's a screenshot for a quick view: https://www.dropbox.com/s/35060r2obuwse4f/Photo%2014.11.2013...

It looks better when you see it moving.

Re:Frosted glass effect with CSS and SVG by cheeaun on Thursday November 14, 2013 @05:16AM (#6731581)
Any reason why it's only available for iPhone 5?
Re:Frosted glass effect with CSS and SVG by peterhunt on Thursday November 14, 2013 @11:25AM (#6733181)
Three reasons.

1. Blur filter is only available on WebKit 2. I know for sure how much texture memory is on an iPhone 5 3. The touch event latency on android is too damn high.

Re:Frosted glass effect with CSS and SVG by Zecc on Thursday November 14, 2013 @05:50AM (#6731652)
>> <h1>If you see this, something is broken.</h1>

The funny thing being that I only saw that because I browsed the source, because the page was so broken for me that I only saw a black screen.

In any case, I see

    Message(null, " This demo is only available for iPhone 5 and iOS 7. Sorry! " )

So I'm out of here.
Re:Frosted glass effect with CSS and SVG by peterhunt on Thursday November 14, 2013 @11:27AM (#6733195)
There was some small text centered on the screen specifying the demo is only available on iPhone 5 (see comment above for why)
Re:Frosted glass effect with CSS and SVG by joegaudet on Thursday November 14, 2013 @03:16AM (#6731248)
Now this is interesting, how does it work ?
Re:Frosted glass effect with CSS and SVG by jakobe on Thursday November 14, 2013 @04:30AM (#6731465)
They use a webkit CSS extension: "-webkit-filter:blur(5px)"
Re:Frosted glass effect with CSS and SVG by comex on Thursday November 14, 2013 @08:33AM (#6732131)
There's a Firefox bug to implement it: https://bugzilla.mozilla.org/show_bug.cgi?id=660196
Re:Frosted glass effect with CSS and SVG by joegaudet on Thursday November 14, 2013 @02:25PM (#6734815)
That blurs the content inside of a div, how is the content tied in, is it scroll synched?
Re:Frosted glass effect with CSS and SVG by peterhunt on Thursday November 14, 2013 @04:14PM (#6735629)
I do synthetic scrolling (translate3d() + touch event interpretation and inertial math). Then duplicate the DOM for the top and bottom bars, adjust the positioning to make them look fluid and apply the CSS blur filter.

It's easy with React :)

Re:Frosted glass effect with CSS and SVG by myhf on Thursday November 14, 2013 @02:09AM (#6731042)
It is done client-side in real time with arbitrary content using an SVG GaussianBlur filter. Decode the data: urls in the SVG to see the full source.
Re:Frosted glass effect with CSS and SVG by joegaudet on Thursday November 14, 2013 @03:14AM (#6731238)
right but it doesn't work with rendered text from arbitrary html content, only by applying filters to an image.
Re:Frosted glass effect with CSS and SVG by nraynaud on Thursday November 14, 2013 @05:06AM (#6731546)
I see a big value in UI design, where you want to make sure that the general layout of your screen is as intended.

I'm still thinking in actually making this thing as a physical object with a handle you put in front of the screen.