cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

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
Loading ..................

Console