Pen Settings



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


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


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.


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.



    - for (var x = 0; x < 30; x++)
      span(class="star star--"+ x)
        svg(version='1',xmlns='', viewbox='0 0 24 24')
          path(d='M18.2 21L12 17.3 5.8 21l1.6-7L2 9.3l7.2-.6L12 2l2.8 6.6 7.2.7-5.4 4.7 1.6 7z')
  h1 Congratulations!!
    | Icons made by 
    a(href='', title='Pixel Buddha') Pixel Buddha
    |  from 
    a(href='', title='Flaticon')
    |  is licensed by 
    a(href='', title='Creative Commons BY 3.0', target='_blank') CC 3.0 BY



                @import url('')

// Vars
$starClass: star
$stars: 30

$starW: 25px
$starH: 25px

$circleW: 178px
$circleH: 178px

$centerStarY: calc(#{$circleH} / 2 - #{$starH} / 2)
$centerStarX: calc(#{$circleW} / 2 - #{$starW} / 2)

// General Styling: Jump to 101 for more action
  box-sizing: border-box

  font-size: 62.5%
  font: normal 14px/1.5 'Yanone Kaffeesatz', sans-serif
  color: hsl(0,0%,30%)
  letter-spacing: 1px
  display: flex
  padding: 6rem 2rem 2rem
  max-width: 70rem
  margin: 6rem auto 0
  background-color: rgb(114, 160, 191)
  flex-wrap: wrap
  display: block
  margin-top: 6rem
  flex: 2 100%
  font-size: 4.6rem
  margin: 0
  display: inline-block
  flex: 1 50%
  color: #fff
  text-transform: uppercase
  padding-left: 10rem
  padding-top: 2rem
  letter-spacing: .3rem
  color: #fff
  text-transform: uppercase
  position: relative
  text-decoration: none
  background-color: rgb(114, 160, 191)
  z-index: 1
    content: ''
    display: block
    position: absolute
    height: 2px
    width: 100%
    background-color: transparent
    left: 0
    top: 30%
    transition: .3s cubic-bezier(0.20, 0.9, 0.5, 1.3)
    z-index: -1
      top: 120%
      background-color: #fff
  position: relative
  z-index: 1
  width: $circleW
  height: $circleH
  flex: 1 0
    width: 100%
    height: 100%
  width: $starW
  height: $starH
  display: block
  position: absolute
  top: 20%
  left: 50%
  transform: translate3d(0,0,0)
  transform-origin: 100% 100%
  z-index: -1
  transition: 1s ease-in-out
// Iterate through given stars  
@for $i from 0 through $stars
  // Vars
  $starW: random(25) + px
  $starH: $starW
  $starColors: orange, yellow, white
  $starKey: random(3)
  $nth: nth($starColors, $starKey)
  $randX: random(150) - 50 + px
  $randY: random(240) - 100 + px
  $randH: random(30)
  $randS: random(40) + '%'
  @keyframes anim-#{$i}
      transform: translate3d(0,0,0)
      transform: rotate(random(360) + deg) translate3d($randX, $randY, 0)
  // Generate random styles for every star
    width: $starW
    height: $starH
    animation: .3s cubic-bezier(0.20, 0.90, 0.50, 1.3) anim-#{$i} forwards

        fill: hsl(calc(40 + #{$randH}), calc(60% + #{$randS}), 50%)