Framework7: Blurred (Frosted glass) effect on navbar/toolbar

Created on 24 Mar 2014  Â·  14Comments  Â·  Source: framework7io/framework7

This is a killer feature of iOS 7 ui, so we definitely need it:)
Any thoughts on how realize it, perfectly with CSS only.

I discovered pure CSS solution using CSS regions, it works perfect on desktop Safari, but super slow and buggy on iOS, so we need something different.

It is also possible do it with JS by duplicating content, but it is not an option because we will have a lot problems when we need to update content there (in duplicated layers)

outdated

All 14 comments

Can you provide an example screenshot of what you're looking for?

I'm assuming you're looking for something like -webkit-filter: blur(2px); but I'm not sure. It would have to blur a separate background element and not any of the text elements. ;)

Here it is http://jsfiddle.net/3SyzN/11/
Open in desktop Safari

As you may see it looks pretty cool:) The same "frosted" bars are used everywhere on iOS. The problem in fiddle is that scrolling doesn't work on iOS. And if i add -webkit-overflow-scrolling to .page-blur-content then everything just disappear on mobile Safari))

Using CSS filter causes a lot of performance issues.

Closing for now as there is no good way to realize it at the moment

I just randomly stumbled on this article. I didn’t read much of it, but one thing caught my attention: the guy uses OpenGL to do blur.

iOS 8 brings WebGL to Safari and web views.

I don’t know much about WebGL, I guess to achieve a live blur effect on HTML elements it would need to take a “screenshot” of the part to blur and update it live (including, most importantly, when scrolling). Sounds like two impossible things, but maybe you’re determined enough to tinker with this. :)

Nice article, but you are right, it sounds like two impossible things :) But will see, i still hope that they stabilise css regions API in iOS 8, and it would be possible without a hassle

Now 2016. Still no chance?

backdrop-filter: blur(10px); should do on iOS devices (no support in Chrome or Firefox)

Yeah only supported by safari and iOS safari: http://caniuse.com/css-backdrop-filter

But this enough for iOS theme

+1 for Frosted glass

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Samnan picture Samnan  Â·  3Comments

J05HI picture J05HI  Â·  3Comments

cloudus picture cloudus  Â·  5Comments

vousys picture vousys  Â·  5Comments

ahmeddaif1 picture ahmeddaif1  Â·  4Comments