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.

            
              <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>
            
          
!
            
              $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
            
          
!
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