css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

              input(type='checkbox' id='navState')
  label(for='navState' id='hamburgerIcon')
    li 1.menu
    li 2.menu
    li 3.menu
    li 4.menu
    li 5.menu
h1 ←Click

  a(href='https://unsplash.com/photos/FV_PxCqgtwc' target='_blank') Photo by Igor Son on Unsplash
  display: none

  position: fixed
  top: 25px
  left: 25px
  width: 36px
  height: 36px
  cursor: pointer
  z-index: 1000

  display: block
  position: relative
  top: 0
  width: 80%
  height: 1px
  margin: 7px auto
  background: #555
  user-select: none

.menu-line:nth-child(1), .menu-line:nth-child(3)
  transition: top .25s .2s, transform .25s
  top: 0
  transform: rotate(0)

  transition: width .25s

input#navState:checked ~ .hamburger-menu .menu-line:nth-child(1)
  transition: top .5s, transform .5s .2s
  top: 8px
  transform: rotate(135deg)

input#navState:checked ~ .hamburger-menu .menu-line:nth-child(2)
  transition: width .5s
  width: 0
input#navState:checked ~ .hamburger-menu .menu-line:nth-child(3)
  transition: top .5s, transform .5s .2s
  top: -8px
  transform: rotate(-135deg)

  transition: visibility .5s, opacity .5s
  visibility: hidden
  opacity: 0
  position: fixed
  top: 0
  left: 0
  width: 100%
  height: 100%
  background: rgba(255, 255, 255, .75)
  overflow: hidden
  -webkit-backdrop-filter: saturate(1.6) blur(8px)
  backdrop-filter: saturate(1.6) blur(8px)

input#navState:checked ~ nav
  visibility: visible
  opacity: 1

  display: table
    display: table-cell
    text-align: center
    vertical-align: middle
    padding: 0
      list-style-type: none
      margin: 1.6em auto
      opacity: 0
      transform: scale(1.2)
      transition: opacity .35s, transform .35s

input#navState:checked ~ nav
    opacity: 1
    transform: scale(1)
    transition-delay: 250ms
    transition-delay: 300ms
    transition-delay: 350ms
    transition-delay: 400ms
    transition-delay: 450ms

  background: url(https://source.unsplash.com/FV_PxCqgtwc/1600x900) no-repeat center top fixed
  background-size: cover
  background-color: snow

  color: #333
  text-align: center
  text-shadow: 0 0 5px white
  letter-spacing: .05em

  position: absolute
  bottom: .6em
  left: .8em
    color: gray
    font-size: .8em
    text-shadow: 0 0 3px white
🕑 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.
Loading ..................