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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <nav>
  <ul>
    <li class="active">
      <a href="#"><span data-hover="Ana Sayfa">Ana sayfa</span></a>
    </li>
    <li>
      <a href="#"><span data-hover="Deneme">DEneme</span></a>
    </li>
    <li>
      <a href="#"><span data-hover="iletişim">iletişim</span></a>
    </li>
    <li>
      <a href="#"><span data-hover="Hakkımızda">Hakkımızda</span></a>
    </li>
  </ul>
</nav>
              
            
!

CSS

              
                *
  padding: 0
  margin: 0

nav
  font: 500 16px Montserrat
  padding: 30px 50px
  text-transform: uppercase
  
  ul li
    list-style: none
    float: left
    padding: 10px 20px
    
    &:hover
      span
        transform: translateY(0)
    
    span
      transform: translateY(-100%)
      transition: transform .3s
      display: inline-block
      position: relative
      color: #f5831f
      
      &:before
        content: attr(data-hover)
        position: absolute
        top: 100%
        transform: translate3d(0, 0, 0)
        color: #464646
    
    &.active
      a
        color: #f5831f
        
        span
          transform: translateY(-100%)
        
          &:before
            transform: none
            color: #f5831f
    
    a
      color: #464646
      text-decoration: none
      display: block
      line-height: 21px
      overflow: hidden
              
            
!

JS

              
                
              
            
!
999px

Console