123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              %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.
            
          
!
            
              @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;
  }
}
            
          
!
            
              $("span").click(function() {
  $("nav").toggleClass("active");
  $("li").toggleClass("active");
  if($(this).text() == "☰") {
    $(this).text("×");
  }
  else {
    $(this).text("☰");
  }
})
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console