Code

Glassy Background Effect

Add a blurry-background effect to your Webflow site divs with this custom CSS. This effect adds an Apple style blurry background effect via a simple CSS code snippet to any div of your choosing.

Glassy Background Effect preview

Add a blurry-background effect to your Webflow site divs with this custom CSS. This effect adds an Apple style blurry background effect via a simple CSS code snippet to any div of your choosing.

How to add it

  1. Add to global head section or via global embed
  2. Add the glass style to any div you want the effect shown on.

The code

CSS
                      <!-- Add to head tag -->
<style>
.glass {
background: rgba( 255, 255, 255, 0.10 );
box-shadow: 0 6px 32px 0 rgba( 31, 38, 135, 0.08 );
backdrop-filter: blur( 12.0px );
-webkit-backdrop-filter: blur( 12.0px );
border-radius: 100px;
}
</style>

                    

Browse similar code snippets

Categories

Language

More from Nikolai Bain

Profile →

Related Webflow questions

All answers →

Similar code snippets

All code snippets →