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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              h1 animation direction
ul
  li
    label normal
    .cell
      .c.directiom-normal(data-col="1")
  li
    label reverse
    .cell
      .c.directiom-reverse(data-col="2")
  li
    label alternate
    .cell
      .c.directiom-alternate(data-col="3")
  li
    label alternate-reverse
    .cell
      .c.directiom-alternate-reverse(data-col="4")
            
          
!

CSS

            
              @import 'nib';
@keyframes move
  0%   { left: 0 }
  100% { left: calc(100% - 2em) }

.c
  position: absolute
  top: 0
  animation move 5s ease 0s infinite

.directiom-normal
  animation-direction: normal
.directiom-reverse
  animation-direction: reverse
.directiom-alternate
  animation-direction: alternate
.directiom-alternate-reverse
  animation-direction: alternate-reverse

html
  font-size: 100%
h1
  font-size: 2.4rem
  text-align: center
ul
  list-style: none
  margin: 2em auto 0
  padding: 0
  max-width: 760px
li
  display: flex
  flex-direction: row
  justify-content: flex-start
  align-items: center
  padding: .5em 1em
  border-bottom: 1px solid #AAB2BD
  width: 100%
  box-sizing: border-box
  &:first-child
    border-top: 1px solid #AAB2BD
.cell
  position: relative
  flex: 1
  height: 2em
label
  font-size: 83%
  white-space: nowrap
  padding-right: .5em
  width: 9em
.c
  border-radius: 50%
  width: 2em
  height: 2em
  
colors = {
  '1': #A0D468,
  '2': #FFCE54,
  '3': #4FC1E9,
  '4': #E9573F,
}
for key, value in colors
  .c[data-col=\"{key}\"]
    background-color: value
            
          
!

JS

            
              
            
          
!
999px

Console