123

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.

            
              .nav
  .top.line
  .middle.line
  .bottom.line
  .run
  .circle
  
  
  
            
          
!
            
              html, body
  width: 100%
  height: 100%
  margin: 0

body
  background: #50C9C3
  background: -webkit-linear-gradient(to left, #50C9C3 , #96DEDA)
  background: linear-gradient(to left, #50C9C3 , #96DEDA) 
        
.nav
  height: 100px
  width: 90px
  position: absolute
  margin: 0 auto
  right: 0
  left: 0
  top: 45%
  cursor: pointer
  .line
    position: relative
    width: 100%
    height: 3px
    margin: 20px 0
    background-color: #fff   
  .top
    top: 0
    animation: levitatetop 3s infinite
    animation-timing-function: cubic-bezier(.51, .55, .27, .70)
  .middle
    top: 0
    animation: levitatemid 2s infinite
    animation-timing-function: cubic-bezier(.51, .55, .27, .70)
  .bottom
    bottom: 0
    animation: levitatebot 3s infinite
    animation-timing-function: cubic-bezier(.51, .55, .27, .70)
  .run
    position: absolute
    top: 32px
    height: 1px
    width: 20px
    background-color: #fff
    animation: runline 3s infinite
    animation-timing-function: cubic-bezier(.51, .55, .27, .70)
  .circle
    width: 7px
    height: 7px
    position: absolute
    top: -15px
    right: 0
    border-radius: 100%
    border: 1px solid white
    animation: rotation 2.5s linear 0s infinite
    &:after 
      content: " "
      width: 3px
      height: 3px
      position: absolute
      top: -15px
      right: -5px
      border-radius: 100%
      border: 1px solid white
    
@keyframes rotation
  0% 
    transform: rotate(0deg)
  100%
    transform: rotate(360deg)  
  
@keyframes runline
  0%
    left: -30px
    opacity: 1
  30%
    left: 100px
    top: 32px
    opacity: 1
  50%
    top: 60px
    left: 100px
  60%
    top: 60px
    left: 100px
   
  70%
    left: -50px
    opacity: 1
    top: 60px
  100%
    left: -50px
    opacity: 1
    top: 32px
  
@keyframes levitatetop
  0% 
    top: -10px
  50% 
    top: 10px
  100%
    top: -10px  
  
@keyframes levitatemid
  0% 
    top: 0px
  50% 
    top: 0
  100%
    top: 0px  

@keyframes levitatebot
  0% 
    bottom: 10px
  50% 
    bottom: -10px
  100%
    bottom: 10px  
  
            
          
!
999px
🕑 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.

Console