cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <nav>
  <article>
    <h2>
      <a href="#">This is just a little example</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">16 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">of a pretty nice nav</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">you could use on your website.</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">To get more information</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">about this navigation</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">please go to the details</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">section of this pen</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">Hello World</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
  <article>
    <h2>
      <a href="#">1337</a>
    </h2>
    <h3>
      <span class="category">Personal</span>
      <span class="date">15 Sep</span>
    </h3>
  </article>
</nav>
            
          
!
            
              @import "compass/css3";

$articles: 9;
$hue: random(210);

@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:300,400);

* {
  margin: 0;
  padding: 0;
  border: 0;
}

html, body {
  min-height: 100%;
}

body {
  font-size: 15px;
  font-family: 'Source Code Pro', sans-serif;
  overflow-x: hidden;
}

nav {
  white-space: nowrap;
}

article {
  position: relative;
  animation: slide-in .5s backwards;
  @for $i from 1 through $articles {
    &:nth-child(#{$i}) {
      animation-delay: ($i / 5)+s;
      h2 {
        background:hsl($hue + $i * 11 ,85%,70%);
        color:hsl($hue +  $i * 11 ,45%,55%);
      }
    }
  }
  h2 {
    display: inline-block;
    box-shadow: -1px 1px, -2px 2px, -3px 3px, -4px 4px, -5px 5px, -6px 6px, -7px 7px, -8px 8px, -9px 9px, -10px 10px;
    font-weight: 300;
    font-size: 1.5em;
    text-transform: uppercase;
    padding-left: 10%;
    padding-right: 1em;
    margin-left: -5px;
    transition: .4s;
    a {
      padding: 1em 0;
      display: inline-block;
      color: #222222;
      text-decoration: none;
    }
    &:hover {
      box-shadow: -1px 1px, -2px 2px, -3px 3px, -4px 4px, -5px 5px, -6px 6px, -7px 7px, -8px 8px, -9px 9px, -10px 10px, -11px 11px, -12px 12px, -13px 13px, -14px 14px, -15px 15px;
      transform: translate3d(5px, -5px, 0);
      transition: .15s;
    }
    &:active {
      box-shadow: -1px 1px, -2px 2px, -3px 3px, -4px 4px, -5px 5px, -6px 6px, -7px 7px, -8px 8px, -9px 9px, -10px 10px;
      transform: translate3d(0px, 0px, 0);
      transition: .15s;
    }
  }
  h3 {
    display: inline-block;
    color: #555555;
    font-style: italic;
    font-size: 0.8em;
    margin-left: 15px;
    .category {
      border: 2px solid #555;
      padding: 5px;
      border-radius: 15px;
    }
  }
}

@keyframes slide-in {
  from { 
    transform: translate3d(-100%, 0, 0);
  }
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console