Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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