Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

              
                %span ☰
%nav
  %ul
    %li <i class="fa fa-home"></i>Dashboard
    %li <i class="fa fa-star"></i>Favorites
    %li <i class="fa fa-user"></i>Profile
    %li <i class="fa fa-cog"></i>Settings
%article
  %h1 Lorem Ipsum
  %p
    Donizzle cool yippiyo mauris. Mamma a elizzle izzle go to hizzle fo tincidunt. Dang a mofo. Stuff izzle lacus break it down mauris elementizzle tristique. Nunc shiznit yo mamma sizzle nizzle eros ultricizzle stuff. Its fo rizzle velizzle daahng dawg, ultricizzle sheezy, bizzle gangsta, adipiscing phat, bizzle. Fizzle velizzle shit, aliquam bow wow wow, pharetra non, dictum sed, turpizzle. Ma nizzle fo shizzle. Crizzle lorizzle. Daahng dawg vitae erizzle bling bling i'm in the shizzle things hizzle. Fusce ass augue fo nibh go to hizzle mattizzle. Phasellizzle fermentizzle for sure nizzle erizzle. Suspendisse for sure leo, pizzle daahng dawg, stuff crunk, commodo nec, dizzle. Donec break yo neck, yall porttitizzle you son of a bizzle. Nunc feugiat, tellus ma nizzle ornare boofron, dizzle i'm in the shizzle tincidunt sheezy, egizzle gizzle pede i saw beyonces tizzles and my pizzle went crizzle ac cool. Crunk mofo, imperdizzle izzle, fo shizzle yippiyo, sempizzle uhuh ... yih!, sapien. Fo shizzle my nizzle boofron get down get down dang ipsum. Check out this ante yo mamma, suscipit vitae, black izzle, rutrizzle break it down, velizzle. Maurizzle shiznit. Shizzlin dizzle non magna sizzle amet risus iaculizzle mofo.
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Quicksand:400);
@import url(https://fonts.googleapis.com/css?family=Raleway:300);

$primary: #555;
$accent: #374059;

@mixin transition {
  @for $i from 1 through 4 {
    &:nth-child(#{$i}) {
      color: hsl(80  / $i, 100%, 80%);
      transition: opacity .2s #{$i * .1}s ease-in;
    }
  }
}



body {
  padding-top: 70px;
  background: $primary;
  font-family: 'Quicksand';
}

span {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 12.5px;
  font-size: 25px;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(to right, #ddff99 10%, #ffdd99, #ffbb99 70%);
  -webkit-background-clip: text;
  cursor: pointer;
  z-index: 1;
  &:hover {
    color: white;
  }
}

nav {
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0;
  left: 103%;
  background: $accent;
  box-shadow: 1px 0 3px 2px $accent;
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
  &.active {
    left: 0;
  }
  ul {
    display: flex;
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    li {
      @include transition;
      margin: 0 25px;
      padding: 3px 0;
      opacity: 0;
      cursor: pointer;
      &.active {
        opacity: 1;
        &:hover {
          color: white;
        }
      }
    }
  }
}

article {
  width: 80%;
  margin: 0 auto 50px;
  h1 {
    font-size: 8.2vw;
    line-height: 1.5;
    color: transparent;
    background: linear-gradient(to right, #ddff99 10%, #ffdd99, #ffbb99 70%);
    -webkit-background-clip: text;
  }
  p {
    font-family: 'Raleway';
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 1.5px;
    color: white;
  }
}
              
            
!

JS

              
                $("span").click(function() {
  $("nav").toggleClass("active");
  $("li").toggleClass("active");
  if($(this).text() == "☰") {
    $(this).text("×");
  }
  else {
    $(this).text("☰");
  }
})
              
            
!
999px

Console