Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blurred (Frosted glass) effect on navbar/toolbar #16

Closed
nolimits4web opened this issue Mar 24, 2014 · 14 comments
Closed

Blurred (Frosted glass) effect on navbar/toolbar #16

nolimits4web opened this issue Mar 24, 2014 · 14 comments
Labels

Comments

@nolimits4web
Copy link
Member

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)

@ptb
Copy link
Contributor

ptb commented Mar 24, 2014

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

@ptb
Copy link
Contributor

ptb commented Mar 24, 2014

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. ;)

@nolimits4web
Copy link
Member Author

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

@nolimits4web
Copy link
Member Author

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))

@thilak-rao
Copy link

Using CSS filter causes a lot of performance issues.

@vscholz
Copy link

vscholz commented Apr 27, 2014

SVG filters might be a solution.

http://viget.com/inspire/frosted-glass-effect-with-blur-filters-and-masks

@nolimits4web
Copy link
Member Author

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

@dieulot
Copy link

dieulot commented Aug 11, 2014

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. :)

@nolimits4web
Copy link
Member Author

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

@mkrikson
Copy link

Now 2016. Still no chance?

@ZanderBrown
Copy link
Contributor

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

@mkrikson
Copy link

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

But this enough for iOS theme

@Dielz98
Copy link

Dielz98 commented Aug 17, 2016

+1 for Frosted glass

@lock
Copy link

lock bot commented Jun 25, 2018

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.

@lock lock bot added the outdated label Jun 25, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jun 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants