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

              
                <h2>Slide Up</h2>
<nav>
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>  
<h2>Expand Height</h2>
<nav class="two">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>  
<h2>Expand Width</h2>
<nav class="three">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>  
<h2>Grow from Center</h2>
<nav class="four">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>
<h2>Slide Down</h2>
<nav class="five">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>
<h2>Grow from Corner</h2>
<nav class="six">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>
<h2>Slide Right</h2>
<nav class="seven">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>
<h2>Slide Left</h2>
<nav class="eight">
  <ul>
    <li><a href="#"><span>Blog</span></a></li>  
    <li><a href="#"><span>About</span></a></li>
    <li><a href="#"><span>Speaking</span></a></li>
    <li><a href="#"><span>Resume</span></a></li>
    <li><a href="#"><span>Contact</span></a></li>
  </ul>
</nav>
              
            
!

CSS

              
                $bg: #33afaf
$border: darken($bg, 10%)
$hover: #af33af
body
  padding: 0
  margin: 0
h2
  margin: 3px 20px
  padding: 0
  font-family: Arial
  color: $hover
  
nav
  width: 100%
  background: $bg
  margin: 0
  padding: 0
  border:
    top: 1px solid $border
    bottom: 1px solid $border
  margin: 10px auto
ul
  display: flex
  justify-content: space-between
  max-width: 80%
  list-style-type: none
  padding: 0 50px
  margin: 0 auto

li
  
  flex: 1 0 auto
  text-align: center
  background: #33afaf
  box-sizing: border-box
  position: relative
  transform: skewX(-20deg)
      
a
  border:
    right: 1px solid $border
    left: 1px solid lighten($bg,10%)
  text-decoration: none
  font-size: 1.2rem
  font-family: arial
  text-transform: uppercase
  color: #fff
  transform: skewX(0deg)
  display: block
  width: 100%
  height: 100%
  padding: 16px
  box-sizing: border-box
  &:after
    position: absolute
    bottom: 0px
    left: 0
    width: 100%
    background: $hover
    height: 1px
    display: block
    content: " "
    opacity: 0
    transition: all 500ms ease-In-Out
  &:hover, &:focus
    text-decoration: underline
    &:after
      height: 100%
      opacity: 1
  span
    transform: skewX(20deg)
    display: block
    position: relative
    z-index: 1
.two
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      top: 50%
      height: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        height: 100%
        top: 0
.three
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      left: 50%
      height: 100%
      width: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        width: 100%
        left: 0     
    
.four
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      left: 50%
      top: 50%
      
      height: 1px
      width: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        width: 100%
        height: 100%
        left: 0  
        top: 0
.five
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      top: 0
      
      height: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        height: 100% 
        top: 0
.six
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      left: 0
      height: 1px
      width: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        width: 100%
        height: 100%
.seven
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      left: 0
      width: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        width: 100%
        height: 100%
        left: 0  
        top: 0
.eight
  a
    &:after
      height: 100%
      opacity: 0
      background: $hover
      left: 100%
      width: 1px
    &:hover, &:focus
      &:after
        opacity: 1
        width: 100%
        height: 100%
        left: 0px
              
            
!

JS

              
                
              
            
!
999px

Console