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

              
                    
.menu__container
  .menu Hello, I'm a card
              
            
!

CSS

              
                $fonts = -apple-system, BlinkMacSystemFont, “Segoe UI”, Roboto, Helvetica, Arial, sans-serif

*,
*:before,
*:after 
  box-sizing inherit
  padding 0
  margin 0
  
body 
  font-family $fonts
  padding 0 10px
  box-sizing border-box
  height: 100vh
  background-image linear-gradient(-20deg, #ddd6f3 0%, #faaca8 100%, #faaca8 100%);

.menu__container
  width 200px
  height 300px
  margin-left auto
  margin-right auto
  margin-top 20vh
  margin-bottom 50px
  border-radius 5px
  cursor pointer
  box-shadow 0 10px 40px 2px rgba(0,0,0,0.4)
  background #000
  transform-origin center center 0px
  transition all .5s ease-out
  animation-name animate
  animation-duration 3s
  animation-iteration-count infinite
  transform perspective(1000px) rotateX(35deg) rotateY(4deg) rotateZ(-30deg)
  z-index 1
  &:hover
    animation unset
    margin-top 18vh
    transform perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)
  .menu
    display flex
    justify-content space-around
    align-items center
    max-width 100%
    height 100%
    color #fff
    
@keyframes animate
  0%
    margin-top 20vh
  50%
    margin-top 18vh
  100%
    margin-top 20vh
              
            
!

JS

              
                
              
            
!
999px

Console