Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

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.

              link href='https://fonts.googleapis.com/css?family=Rokkitt:700' rel='stylesheet' type='text/css'

h1 Finite Burger
  - for i in 1..40
    div style="z-index: -#{i}"
  | Grilled to perfection by 
  a href="http://rileyjshaw.com" rileyjshaw
              @import compass

$bg: #f39c12
$lettuce: #2ecc71
$tomato: #e74c3c

  margin: 0
  padding: 0
  text-align: center
  background: $bg
  font-family: 'Rokkitt', serif
  font-weight: bold

  height: 180px
  line-height: 180px
  font-size: 120px
  color: scale-lightness($bg, 75%)
  +text-shadow(0 8px scale-lightness($bg, 28%), 0 16px scale-lightness($bg, 14%), 0 24px scale-lightness($bg, 7%))
    width: 240px
    margin: 0 auto 0
    position: relative
    height: 120px
    +border-radius(40px 40px 120px 120px)
    margin-bottom: -80px
    background: scale-lightness($bg, -45%)
    position: relative
    height: 100px
    +border-radius(5px 5px 95px 95px)
    margin-bottom: -100px
    background: scale-lightness($bg, -65%)
    background: $lettuce
    background: scale-lightness($lettuce, -25%)
    background: $tomato
    background: scale-lightness($tomato, -25%)
    background: scale-lightness($bg, 25%)
    background: scale-lightness($bg, 40%)
    position: relative
    z-index: 999999
    height: 180px
    margin-bottom: -90px
    +border-radius(120px 120px 60px 60px)
    background-color: scale-lightness($bg, -25%)
    +background-image(radial-gradient(scale-lightness($bg, 75%) 8%, transparent 9%), radial-gradient(scale-lightness($bg, 75%) 8%, transparent 9%))
    background-size: 30px 30px
    background-position: 0 0, (15px) (8px)
  position: fixed
  bottom: -60px
  left: 0
  height: 60px
  line-height: 60px
  width: 100%
  font-size: 36px
  text-align: center
  color: white
  background: #2980b9
  +transition(bottom .5s)
    color: white
              $('h1').text('Infinite Burger')

$win = $(window)
$doc = $(document)
$yum = $('.burger')

bottomCount = -4000
showOff = false

$win.scroll () ->
  scrollTop = $win.scrollTop()
  if scrollTop + $win.height() > $doc.height() - 500
    $yum.append("<div style='z-index: #{--bottomCount}'</div>") for i in [1..1000]
  if showOff is false and scrollTop > 8000
    $('.showoff').css('bottom', '0')
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.