123

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              .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
    
    
            
          
!
            
              @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
      &: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)
      
 
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console