Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
    <!--   navbar open-->
    <div class="nav_bar">
      <div class="barnd">Google Design</div>
      <ul class="fadeOut">
        <li>Articles</li>
        <li>Resources</li>
        <li>Articles</li>
        <li>jobs</li>
        <li>About</li>
      </ul>
    </div>
    <div class="nav_shadow"></div>
    <!--   navbar Close-->

    <!--   Main Header -->
    <div class="main_header loader">
        <div class="disgner_name">Google Design<span>&nbsp;</span></div>
    </div>
    <!--   Main Header close -->
    <!--   contains box -->
    <div class="box_wrappr">
      <div class="box"></div>
      <div class="box"></div>
      <div class="box"></div>
      <div class="box"></div>
    </div>
    <!--   contains box close -->
  </div>
              
            
!

CSS

              
                html {
  font-size: 100%;
  height: 100%;
  width: 100%;
  outline: none;
}

body {
  background: #f3f3f3;
  font-family: 'Roboto Mono', Arial, serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 26px;
  text-align: left;
  margin: auto;
  width: 100%;
  outline: none;
}
ul{
  margin: 20px 20px;
  list-style-type: none;
  float: right;
  padding: 0;
}
ul li { 
  display: inline;
  margin: 7px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase; 
}

/**************************************
              navbar
**************************************/
.nav_bar{
    position: fixed;
    background: #4285F4;
    width: 100%;
    min-height: 60px;
    z-index: 3;
}
.barnd {
  display: none;
  position: relative;
  float: left;
  color: #fff;
  left: 5%;
  top: 20px;
  font-size: 18px;
  line-height: 30px;
}

.barnd:before{
  position: absolute;
  content: "";
  height: 5px;
  width: 5px;
  top: 40%;
  left: 48%;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;;
}

.barnd:after{
  position: absolute;
  content: "";
  height: 7px;
  width: 10px;
  top: 40%;
  right: -13%;
  z-index: -1;
  border-top: 3px solid rgba(255, 255, 255, 0.4);
  border-right: 4px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
}
.nav_shadow{
    position: fixed;
    background: transparent;
    width: 100%;
    min-height: 60px;
    z-index: 2;
    display: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.23), 0 10px 40px rgba(0, 0, 0, 0.19);
}
/**************************************
              loader
**************************************/
.loader{
    position: fixed !important;
    top: 0px;
    width: 100%;
    height: 100% !important;
    z-index: 10000 !important;
}
/**************************************
              Main header
**************************************/
.main_header{
  position: absolute;
  width: 100%;
  height: 40%;
  min-height: 160px;
  background: #4285F4;
  z-index: 1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.23), 0 10px 40px rgba(0, 0, 0, 0.19);
    /*  -webkit-transition-delay: 2s;*/
  -webkit-transition: all .5s cubic-bezier(0.81, 0.4, 0.24, 0.75);
}

.disgner_name { 
  position: absolute;
  float: left;
  top: 50%;
  left: 5%;
  font-size: 56px;
  line-height: 1;

}

.disgner_name:before{
  position: absolute;
  content: "";
  height: 7px;
  width: 7px;
  top: 40%;
  left: 49%;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;;
}

.disgner_name:after{
  position: absolute;
  content: "";
  height: 10px;
  width: 15px;
  top: 50%;
  right: -7%;
  z-index: -1;
  border-top: 4px solid rgba(255, 255, 255, 0.4);
  border-right: 5px solid rgba(255, 255, 255, 0.4);
  background-color: transparent;
}

.disgner_name span {
    position:absolute;
    top:0;
    right: -10%;
    width:0;
    height: 65px;
    background: #4285F4; /* same as background */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-animation: typing 0.7s steps(30, end), /* # of steps = # of characters */
                        blink-caret 1s step-end infinite;
    -moz-animation: typing 0.7s steps(30, end), /* # of steps = # of characters */
                        blink-caret 1s step-end infinite;

}

@-webkit-keyframes typing {
    from { width: 100% }
    to { width:0 }
}

@-moz-keyframes typing {
    from { width: 100% }
    to { width:0 }
}


/**************************************
              contains box
**************************************/

.box_wrappr{
  text-align: center;
  position: absolute;
  top: 50%;
  margin: 0 auto;
}
.box{
    display: inline-block;
    width: 450px;
    height: 450px;
    margin: 5px;
    -webkit-transition: all .5s ease-in-out;
}
.box:hover{
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.23), 0 3px 12px rgba(0, 0, 0, 0.16);
}
.box_wrappr .box:nth-child(1){
      background: #FF9800;
}
.box_wrappr .box:nth-child(2){
      background: #E91E63;
}
.box_wrappr .box:nth-child(3){
      background: #673AB7;
}
.box_wrappr .box:nth-child(4){
     background: #009688;
}

/**************************************
      Animation.css FadeIn and Fadeout
**************************************/


@media only screen and (max-width : 500px) {
  .nav_bar,.nav_shadow{
      min-height: 100px;
  }
  ul {
    margin: 35px 20px;
  }
  .disgner_name {
    top: 60%;
    font-size: 35px;
  }
  .box {
    width: 400px;
    height: 400px;
  }
}
              
            
!

JS

              
                      /////////////////////////////////
     //   page Reload to start With Top            
 //////////////////////////////////

    $(document).ready(function(){
        $('html').animate({scrollTop:0}, 1);
        $('body').animate({scrollTop:0}, 1);
    });

      /////////////////////////////////
     //         Loader            
    //////////////////////////////////
        $(window).load(function() {
               setTimeout(function() {
                   $(".loader").removeClass("loader");
               }, 1000);
        });
      //////////////////////////////////
     //    Scroll To show Shadow         
    ///////////////////////////////////
        $(window).scroll(function() {
            var y = $(window).scrollTop();
            if (y > 0) {
                $(".nav_shadow").css({
                    'display': 'block',
                    'opacity': y / 400
                });
                
            } else {
                $(".nav_shadow").css({
                    'display': 'block',
                    'opacity': y / 400
                });
            }
        });

        $(window).scroll(function() {
            var y = $(window).scrollTop();
            if (y > 0) {
                $(".barnd").css({
                    'display': 'block',
                    'opacity': y / 100
                });
                
            } else {
                $(".barnd").css({
                    'display': 'block',
                    'opacity': y / 100
                });
            }
        });
      //////////////////////////////////
     //    Scroll to faid out        
    ///////////////////////////////////
        var fadeStart=000 // 100px scroll or less will equiv to 1 opacity
            ,fadeUntil=100 // 200px scroll or more will equiv to 0 opacity
            ,fading = $('.disgner_name')
        ;

        $(window).bind('scroll', function(){
            var offset = $(document).scrollTop()
                ,opacity=0
            ;
            if( offset<=fadeStart ){
                opacity=1;
            }else if( offset<=fadeUntil ){
                opacity=1-offset/fadeUntil;
            }
            fading.css('opacity',opacity);
        });


              
            
!
999px

Console