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

              
                .card
  .content
    h1.light Hello<span class="dark">.</span>
    p.medium I'm a super person a food of young <a class="light" href="#">Major Food</a>
    p.medium very special honor by large candy.
    .column
      h6.dark Stuff
      br
      h5.medium I have lots of good
      h5.medium really skills
    .column
      h6.dark Things
      br
      h5.medium Skills dont do good
      h5.medium slick fonts
    .tabs.dark
      p.tab One thing
      p.tab Codepen
      p.tab Thing two
      p.tab dribbble
              
            
!

CSS

              
                //https://d13yacurqjgara.cloudfront.net/users/343652/screenshots/2302197/open-uri20151020-3-zn9akg

random(min,max)
  return floor(math(0, 'random')*(max - min + 1) + min)

body
  margin 0
  background #000

.card
  width 70vw
  height 80vh
  margin 10vh 15vw
  background rgba(white, .05)
  color white
  border-radius 2px
  padding 18vh 10vw
  box-sizing border-box
  position relative
  animation card .8s ease-out
  animation-fill-mode forwards
  .content
    font-family 'Open Sans', sans-serif
    letter-spacing 2px
    h1
      display inline-block
      padding 8px 16px
      margin 4px 0
      width auto
      font-family 'PT Serif', serif
      transform scale(1, .9)
    p
      margin 4px 0
      padding 4px 16px
      display inline-block
    p, h4, h5, h6
      font-weight 100
    a
      font-weight 700
      text-decoration none
      box-shadow 0 -3px rgba(white, .3) inset
    .column
      display inline-block
      width 20vw
      margin-top 16px
      font-size .8em
      *
        margin 3px 0
        display inline-block
    .tabs
      position absolute
      bottom 2.5vh
      right 2.5vw
      font-size .6em
      .tab
        margin 0 8px
        padding 0
        float right
        font-weight 100
    .light
      color white
    .medium
      color rgba(white, .85)
    .dark
      color rgba(white, .5)
    //&, & *
      //box-shadow inset 0 0 0 2px red
    *
      padding-left 0 !important
    p, h1, h2, h3, h4, h5, h6, div
      *
        animation fadein 3s
      &.light
        animation boxshadow-light 3s
      &.medium
        animation boxshadow-medium 3s
      &.dark
        animation boxshadow-dark 3s
      for n in (1..100)
        &:nth-child({n})
          animation-duration (3.5 + (n / 3s))
          *
            animation-duration @animation-duration

@keyframes card
  0%, 50%
    box-shadow -70vw 0 0 2vw rgba(white, .05) inset, -140vw 0 0 2vw rgba(white, .05) inset
  100%
    box-shadow 0 0 0 2vw rgba(white, .05) inset, calc(-66vw + 1px) 0 0 2vw rgba(white, .05) inset

@keyframes boxshadow-light
  0%, 40%
    color rgba(0,0,0,0)
    box-shadow 0 0 white inset
  79.9999999999999%
    box-shadow 50vw 0 white inset
    color rgba(0,0,0,0)
  80%
    box-shadow -50vw 0 white inset
    color rgba(0,0,0,0)
  100%
    color white
    box-shadow 0 0 white inset

@keyframes boxshadow-medium
  0%, 40%
    color rgba(0,0,0,0)
    box-shadow 0 0 rgba(white, .85) inset
  79.9999999999999%
    box-shadow 50vw 0 rgba(white, .85) inset
    color rgba(0,0,0,0)
  80%
    box-shadow -50vw 0 rgba(white, .85) inset
    color rgba(0,0,0,0)
  100%
    color rgba(white, .85)
    box-shadow 0 0 rgba(white, .85) inset

@keyframes boxshadow-dark
  0%, 40%
    color rgba(0,0,0,0)
    box-shadow 0 0 rgba(white, .5) inset
  79.9999999999999%
    box-shadow 50vw 0 rgba(white, .5) inset
    color rgba(0,0,0,0)
  80%
    box-shadow -50vw 0 rgba(white, .5) inset
    color rgba(0,0,0,0)
  100%
    color rgba(white, .5)
    box-shadow 0 0 rgba(white, .5) inset

@keyframes fadein
  0%, 80%
    opacity 0
  100%
    opacity 1
              
            
!

JS

              
                
              
            
!
999px

Console