javascript - How to blur only background and not content in Ionic/CSS -


i trying have blurred background content.

so far tried this:

.background-image {   background-image: url('../img/background/image.jpg');   width: 100vw;   height: 100vh;    -webkit-filter: blur(10px);   -moz-filter: blur(10px);   -o-filter: blur(10px);   -ms-filter: blur(10px);   filter: blur(10px); } 

and then

<ion-view class="background-image">    // header, content, footer etc <ion-view> 

but problem whole screen blurred , not background follows:

enter image description here

put content out side blurred div.

.background-image {   background-image: url('../img/background/image.jpg');   width: 100vw;   height: 100vh;    -webkit-filter: blur(10px);   -moz-filter: blur(10px);   -o-filter: blur(10px);   -ms-filter: blur(10px);   filter: blur(10px); }  <div class="background-image"></div>  <div>content</div> 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -