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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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">
  <div class="header fixed-header navbar-default navbar-fixed-top" role="navigation">

    <ul class="nav nav-pills pull-right">
      <li><a href="#" id="trigger"><span class="entypo-menu"></span></a></li>
    </ul>
    <h3 class="text-muted"><span>Focu<span class="bl">css</span></span> <small class="starter"> Click the menu icon to see it live <span class="entypo-right-thin"></span></small></h3>
  </div>
  <div></div>
  <div class="sidebar closed">
    <header>
      <h2>Sidebar</h2> <a href="#" id="close"><span class="entypo-cancel"></span></a>
    </header>
    <ul> 
      <li><a href="#">A link</a></li>
      <li><a href="#">A link</a></li>
      <li><a href="#">A link</a></li>
      <li><a href="#">A link</a></li>
      <li><a href="#">A link</a></li>
      <li><a href="#">A link</a></li>
      <li><a href="#">A link</a></li>
    </ul>
  </div>
  <div id="blurrMe">
    <div class="jumbotron">
      <h1>Focus your users, on your sidebar.</h1>
      <p class="lead">With a bit of jquery, CSS and a SVG fallback, you will be able to create a cool blurring effect, that will focus your users on your sidebar.</p>

    </div>

    <div class="row marketing">
      <div class="col-md-4">
        <h4>Idea <span class="fontawesome-lightbulb"></span></h4>
        <p>Focus the user on some sidebar content, and blurring the useless content.<br/> This way, the user can focus on your sidebar, and the blurred effect create a smooth & not-intrusive way to do it. </p>
      </div>
      <div class="col-md-4">

        <h4>Cross-Browser <span class="zocial-chrome"></span> <span class="zocial-ie"></span> <span class="fontelico-firefox"></span></h4>
        <p>Of course, we want it to work everywhere, or almost everywhere ;)</br>
        The effect can be applied to <strong>Firefox</strong>, <strong>Webkit</strong> browsers (Chrome, Safari, etc) and <strong>IE</strong> </p>
    </div>
    <div class="col-md-4">
      <h4>Use, Fork and share ! <span class="entypo-share"></span> </h4>
      <p>If you liked the idea, and want to contribute, I will open a github repo dedicated to it soon, but you can fork it, modify it and/or use it as you want.</p>
    </div>
  </div>



</div>

<div class="footer">
  <p><a href="https://twitter.com/lukyvj">@LukyVj</a> 2014</p>
</div>
</div>

</div> <!-- /container -->
<!-- SVG filter for Firefox -->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <filter id="blur">
    <feGaussianBlur stdDeviation="10" />
  </filter>

  <filter id="blurLogo">
    <feGaussianBlur stdDeviation="1" />
  </filter>
</svg>
              
            
!

CSS

              
                @import "bourbon";

$base-font-weight:300;
$base-line-height:34px;
@mixin reset {
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  float:left;
}
@mixin high{
  @include box-sizing(border-box);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight:$base-font-weight;
  line-height:$base-line-height;
}
*{
  @include high();
}

html,body{
  @include reset();
}
$types: "entypo",  "openwebicons" , "fontawesome", "zocial", "fontelico";

@each $type in $types {
  @import url(http://weloveiconfonts.com/api/?family=#{$type});
  /* #{($type)} */
  [class*="#{$type}-"]:before {
    font-family: '#{$type}', sans-serif;
  }
}
/* Fix OPW
----------------------------------------------------------*/
/* openwebicons */
[class*="openwebicons-"]:before {
  font-family: 'OpenWeb Icons', sans-serif;
}

$types: "entypo";
$color: #1abc9c;
$c: $color;
$white: #F3F3F3;
$color-theme: $c;

body{
  color: darken($c, 5%);
  background: $white;
  padding-top: 100px;
}
.container {
max-width: 830px;
}
.header{
  .text-muted{
    padding: .4em .8em;
    span{
      &:hover{
        -webkit-filter: blur(1px); // Webkit
        filter: blur(1px);
        filter: url(#blurLogo); // Firefox
        filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='1'); // IE
      }
      span.bl{
        font-weight: 400;
        @include animation(blur 5s ease infinite)
          }
    }
    .starter{
      float:right;
      line-height: 2.5;
      color: darken($c, 5%);
    }
  }
}
.nav{
  li{
    &:hover{
      a{background: transparent;
        span{
          background: $c;
          color: $white;
        }
      }
    }
    a{
      color: darken($c, 5%);
      line-height:3;
      &.active{
        span{
          background: $c;
          color: $white;
        } 
      }
      span{
        box-shadow: inset 0 0 0 .1em $c;
        font-size: 1.6em;
        padding:.2em .4em; 
        height: 30px !important;
        border-radius: 3px;


      }
    }
  }
}


/* Jumbotron
----------------------------------------------*/
.jumbotron{
  color: #fff;
  background: $c;
}

/* Sidebar
-----------------------------------------------------------------------------------------*/
$sidebar-width: 260px;
.menusign{
  display: block;
  width: 10px;
  line-height:.3;
  font-size: 2em;
  margin: .5em;
  br{height: 0}
}
.sidebar{
  position: fixed;
  z-index: 9999999;
  left: 0;
  top:0;
  height: 100%;
  width: $sidebar-width;
  background: $white;
  @include transition(left .3s ease, box-shadow .3s ease .2s);
  box-shadow: .5em 0 0 0 $c, .6em 0 0 0 darken($c, 5%);
  #close{
    float: right;
    margin: -5.5rem 1rem;
    font-size:1.4em;
    color:lighten(#F9276B, 10%);
    text-align: right;
  }
  &.closed{
    left: -$sidebar-width;
    box-shadow: 0 0 0 $color-theme;
  }
  h2{
    padding: .5em;
    color: $c; 
  }
  ul{
    padding: 0;
    margin: 0;

    li{
      width: 90%;
      margin:5px 10px;
      float: left;
      display: inline-block;
      margin-bottom: 0;
      font-weight: 400;
      text-align: center;
      vertical-align: middle;
      cursor: pointer;
      background-image: none;
      border: 1px solid transparent;
      white-space: nowrap;
      padding: 3px 6px;
      font-size: 14px;
      line-height: 1.42857143;
      border-radius: 4px;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      border: 2px solid $c;

      background: $c;
      color: $white;
      a{color: white;}

      &:hover{
        background: darken($c, 5%);
        border-color: darken($c, 5%);
      }
    }
  }


}
.footer{
  a{
    color:darken($c, 5%)
  }
}


/* Blurred class

This class is added to the container 
(#blurMe) when the sidebar is open.
-----------------------------------*/ 

.blurred{
  @include transition(all .6s ease);

  -webkit-filter: blur(10px); // Webkit
  filter: blur(10px);
  filter: url(#blur); // Firefox
  filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='10'); // IE
}




/* Logo effect
-----------------------------*/
@include keyframes(blur){
  66%{
    -webkit-filter: blur(1px); // Webkit
    filter: blur(1px);
    filter: url(#blurLogo); // Firefox
    filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius='1'); // IE
  }
}




              
            
!

JS

              
                $(document).ready(function(){


// Toggle the blurred class
function sidebar(){
  var trigger = $('#trigger, #close'),
  menu = $('.sidebar');

  trigger.on('click',function(){
   $(this).toggleClass('active');
   menu.toggleClass('closed');
   $('#blurrMe').toggleClass('blurred'); // just here
  });
}




 function deploy(){
  sidebar();
 }

 deploy();

});
              
            
!
999px

Console