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

              
                .menu__container
  .menu
    a(href="javascript:;") Home
    a(href="javascript:;") About
    a(href="javascript:;") Contact
    a(href="javascript:;") Faq
    
.menu__container.menu__container--2
  .menu
    a(href="javascript:;") Home
    a(href="javascript:;") About
    a(href="javascript:;") Contact
    a(href="javascript:;") Faq
    
.menu__container.menu__container--3
  .menu
    a(href="javascript:;") Home
    a(href="javascript:;") About
    a(href="javascript:;") Contact
    a(href="javascript:;") Faq
    
    
.menu__container.menu__container--4
  .menu
    a(href="javascript:;") Home
    a(href="javascript:;") About
    a(href="javascript:;") Contact
    a(href="javascript:;") Faq
    
    
.menu__container.menu__container--5
  .menu
    a(href="javascript:;") Home
    a(href="javascript:;") About
    a(href="javascript:;") Contact
    a(href="javascript:;") Faq
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Varela+Round')

html 
  box-sizing border-box

*,
*:before,
*:after 
  box-sizing inherit
  padding 0
  margin 0
  
body 
  font-family 'Varela Round', sans-serif
  padding 0 10px


.menu__container
  max-width 500px
  height 100px
  margin-left auto
  margin-right auto
  margin-top 50px
  margin-bottom 50px
  border-radius 5px
  box-shadow 0 10px 40px rgba(0,0,0,0.1)
  background-image linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%)
  transform perspective(1000px) rotateX(-45deg) rotateY(0deg) rotateZ(0deg)
  transform-origin center center 0px
  transition all .5s ease-out
  &:hover
    transform perspective(1000px) rotateX(355deg) rotateY(0deg) rotateZ(0deg)
    box-shadow 0 10px 40px rgba(0,0,0,0)
  .menu
    display flex
    justify-content space-around
    align-items center
    max-width 100%
    height 100%
    a 
      text-decoration none
      color #fff
      font-size 17px
      transition all .1s linear
      &:hover
        transform scale(1.1,1.1)

      
.menu__container--2
  background-image linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%)
  transform perspective(1000px) rotateX(0deg) rotateY(45deg) rotateZ(0deg)
  &:hover
    transform perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)
    
.menu__container--3
  background-image linear-gradient(to top, #a7a6cb 0%, #8989ba 52%, #8989ba 100%);
  transform perspective(1000px) rotateX(0deg) rotateY(-45deg) rotateZ(0deg)
  &:hover
    transform perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)
    
.menu__container--4
  background-image linear-gradient(-20deg, #ddd6f3 0%, #faaca8 100%, #faaca8 100%);
  transform perspective(1000px) rotateX(45deg) rotateY(5deg) rotateZ(-15deg)
  &:hover
    transform perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)

.menu__container--5
  background-image linear-gradient(to top, #a3bded 0%, #6991c7 100%);
  transform: perspective(1000px) rotateX(180deg) rotateY(0deg) rotateZ(0deg)
  &:hover
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)
              
            
!

JS

              
                
              
            
!
999px

Console