Skip to content

One way of recreating the iOS7-style blurred overlay, using CSS.

Notifications You must be signed in to change notification settings

ralts00/ios7-blur-overlay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

iOS7 Blur Overlay

One way of recreating the iOS7-style blurred overlay, using CSS.

iOS7-style blurred overlay panels

Notes

  • The main 'trick' here is to use background-attachment: fixed; for the background on the list items. This fixes the background's position to the top-level containing element
  • The blur is actually a second image, with a photoshop blur filter applied. This could applied as a CSS filter, but a) this would lower the browser support for the effect (~44% as of 02/14) and b) require schenanegans with pseudo elements
  • background-size: cover; is used on both the body tag and list items

Limitations

  • You can't force hardware acceleration on the list items: it locks the background position, ruining the effect
  • Transitions aren't possible, as this enables hardware acceleration (see above).

About

One way of recreating the iOS7-style blurred overlay, using CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published