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

              
                #body
  .wholePage
    .vocab
      .definition
        %p Definition Definition Definition Definition Definition Definition Definition Definition Definition 
      .definition
        %p Definition Definition Definition Definition Definition Definition Definition Definition Definition 
      .definition
        %p Definition Definition Definition Definition Definition Definition Definition Definition Definition 
      .definition
        %p Definition Definition Definition Definition Definition Definition Definition Definition Definition 
      .definition
        %p Definition Definition Definition Definition Definition Definition Definition Definition Definition 
    .box1
      %h2 Word
    .box2
      %h2 Word
    .box3
      %h2 Word
    .box4
      %h2 Word
    .box5
      %h2 Word
    .theForm
      %form
        Question 1 
        %br
        %input{:type => "radio"} Option 1
        %br
        %input{:type => "radio"} Option 2
        .hint1 Here is a hint
        .hintBubble1 
          %h3 Hint?
        Question 2 
        %br
        %input{:type => "radio"} Option 1
        %br
        %input{:type => "radio"} Option 2
        .hint2 Here is a hint
        .hintBubble2
          %h3 Hint?
        Question 3 
        %br
        %input{:type => "radio"} Option 1
        %br
        %input{:type => "radio"} Option 2
        .hint3 Here is a hint
        .hintBubble3
          %h3 Hint?
        Question 4 
        %br
        %input{:type => "radio"} Option 1
        %br
        %input{:type => "radio"} Option 2
        .hint4 Here is a hint
        .hintBubble4
          %h3 Hint?
        Question 5
        %br
        %input{:type => "radio"} Option 1
        %br
        %input{:type => "radio"} Option 2
        .hint5 Here is a hint
        .hintBubble5
          %h3 Hint?

     
        

              
            
!

CSS

              
                body
  margin: 0
  background-color: silver
  z-index: 1
  
.wholePage
  top: 100px
  margin: 0 auto
  width: 960px
  background-color: white
  display: block
  height: 100%
  position: relative
  z-index: 2
  
.definition
  width: 300px
  margin: 0 auto
  position: relative
  display: block
  top: 40px
=boxSpace($bgColor, $howHigh)
  top: $howHigh
  background-color: $bgColor
  height: 72px
  width: 300px
  transition: all 3s ease-out
  display: block
  position: absolute
  left: 320px
  border-radius: 10px
  box-shadow: 5px 5px 5px #888888

.box1
  +boxSpace(red, 25px)
.box2
  +boxSpace(orange, 97px)
.box3
  +boxSpace(yellow, 169px)
.box4
  +boxSpace(green, 241px)
.box5
  +boxSpace(blue, 313px)
=movingBox
  transform: translateX(-310px)
  transition: 1s ease-in-out 0s
  
.box1:hover, .box2:hover, .box3:hover, .box4:hover, .box5:hover
  +movingBox

h2
  text-align: center
.theForm
  display: block
  top: 80px
  left: 320px
  position: relative
  
.hint1, .hint2, .hint3, .hint4, .hint5 
  display: block
  position: relative
  left: 150px
  top: -40px
  
.hintBubble1, .hintBubble2, .hintBubble3, .hintBubble4, .hintBubble5 
  width: 200px
  height: 70px
  background-color: purple
  display: block
  position: relative
  top: -100px
  left: 100px
  border-radius: 30px
  transition: 1s all ease
  box-shadow: 5px 5px 5px #888888
.hintBubble1:hover
  transform: rotateX(90deg)
.hintBubble2:hover
  transform: skewY(90deg)
.hintBubble3:hover
  transform: skewX(90deg)
.hintBubble4:hover
  transform: scale(0)
.hintBubble5:hover
  transform: rotateY(90deg)
  
h3
  position: relative
  display: block
  top: 10px
  left: 30px



  
  
  


              
            
!

JS

              
                
              
            
!
999px

Console