Frost blur header - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Frost blur header

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

body, html {
   margin: 0;
   padding: 0;
}
#header {<!-- w w  w.  ja  va2  s.c  o  m-->
   width: 100%;
   height: 200px;
   background-image: url(https://www.java2s.com/style/demo/Opera.png);
   background-position: left bottom;
}
#gloss {
   position: absolute;
   top: 100px;
   height: 100px;
   width: 100%;
}
#gloss::before {
   display: block;
   width: 100%;
   height: 100px;
   background-image: url(https://www.java2s.com/style/demo/Opera.png);
   background-position: left bottom;
   -webkit-filter: blur(20px);
   content: ' ';
}
      </style> 
 </head> 
 <body> 
  <div id="header"> 
   <div id="gloss"></div> 
  </div>  
 </body>
</html>

Related Tutorials