Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

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

              
                <h1>Worm By Picolo</h1>
<div id="conteiner-corpo">
  <div id="olho-direito">
    <div id="iris-direita"></div>
  </div>
  <div id="olho-esquerdo">
    <div id="iris-esquerda"></div>
  </div>
  <div id="cabeca"></div>
  <div id="queixo">
    <div id="boca"></div>
  </div>
  <div id="corpo1"></div>
  <div id="corpo2"></div>
  <div id="corpo3"></div>
  <div id="corpo4"></div>
  <div id="corpo5"></div>
  <div id="corpo6"></div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Rokkitt:400,700);

body {
  font: 20px/1.6em 'Rokkitt', sans-serif;
  margin: 0 auto;
  width: 350px;
}

h1 {
  text-align: center;
}

#conteiner-corpo {
  position: absolute;
  height: 200px;
  width: 350px;
  -webkit-animation: body 120s infinite;
  animation: body 120s infinite;
}

#olho-direito {
  border-left: 1px solid #000;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  background: #FFF;
  position: relative;
  width: 70px;
  height: 51px;
  top: 67px;
  left: 42px;
  z-index: 100;
  border-radius: 50%; 
  -webkit-animation: olho-direito 3s infinite;
  animation: olho-direito 3s infinite;
}

#iris-direita {
  border: 1px solid #000;
  position: relative;
  background: #000;
  height: 15px;
  width: 23px;
  top: 14px;
  left: 21px;
  border-radius: 50%;
}

#olho-esquerdo {
  border: 1px solid #000;
  position: relative;
  background: #FFF;
  width: 65px;
  height: 61px;
  top: 14px;
  left: 105px;
  z-index: 99;
  border-radius: 50%;
  -webkit-animation: olho-esquerdo 3s infinite;
  animation: olho-esquerdo 3s infinite;
}

#iris-esquerda {
  border: 1px solid #000;
  background: #000;
  position: relative;
  height: 23px;
  width: 25px;
  top: 17px;
  left: 21px;
  border-radius: 50% 
}

#queixo {
  border: 1px solid #000;
  position: relative;
  background: #FFF;
  width: 84px;
  height: 55px;
  left: 58px;
  top: -18px;
  z-index: 98;
  border-radius: 0 0 80px 90px;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: queixo 3s infinite;
  animation: queixo 3s infinite;
}

#boca {
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  position: absolute;
  width: 55px;
  height: 10px;
  left: 09px;
  top: 30px;
  z-index: 101;
  -webkit-transform: rotate(9deg);
  -moz-transform: rotate(9deg);
  border-radius: 0 0 80px 90px;
}

#cabeca {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 60px;
  height: 40px;
  left: 80px;
  top: 50px;
  z-index: 97;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: cabeca 3s infinite;
  animation: cabeca 3s infinite;
}

#corpo1 {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 80px;
  height: 90px;
  left: 108px;
  top: 22px;
  z-index: 96;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: corpo1 3s infinite;
  animation: corpo1 3s infinite;
}

#corpo2 {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 87px;
  height: 90px;
  left: 150px;
  top: 9px;
  z-index: 95;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: corpo2 3s infinite;
  animation: corpo2 3s infinite;
}

#corpo3 {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 80px;
  height: 90px;
  left: 180px;
  top: 27px;
  z-index: 94;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: corpo3 3s infinite;
  animation: corpo3 3s infinite;
}

#corpo4 {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 70px;
  height: 70px;
  left: 200px;
  top: 62px;
  z-index: 93;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: corpo4 3s infinite;
  animation: corpo4 3s infinite;
}

#corpo5 {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 67px;
  height: 67px;
  left: 213px;
  top: 84px;
  z-index: 92;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  -webkit-animation: corpo5 3s infinite;
  animation: corpo5 3s infinite;
}

#corpo6 {
  border: 1px solid #000;
  position: absolute;
  background: #FFF;
  width: 75px;
  height: 50px;
  left: 230px;
  top: 103px;
  z-index: 91;
  border-radius: 50%;
  background: -moz-linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400); 
  background: linear-gradient(to bottom, #b4ddb4 ,#83c783, #52b152, #008a00 ,#005700 ,#002400);  
  -webkit-animation: corpo6 3s infinite;
  animation: corpo6 3s infinite;
}

@keyframes cabeca {
  50% {
    left: 90px
  }
}

@-webkit-keyframes cabeca {
  50% {
    left: 90px
  }
}

@keyframes queixo {
  50% {
    left: 71px
  }
}

@-webkit-keyframes queixo {
  50% {
    left: 71px
  }
}

@keyframes olho-direito {
  50% {
    left: 55px
  }
}

@-webkit-keyframes olho-direito {
  50% {
    left: 55px
  }
}

@keyframes olho-esquerdo {
  50% {
    left: 117px
  }
}

@-webkit-keyframes olho-esquerdo {
  50% {
    left: 117px
  }
}

@keyframes corpo1 {
  50% {
    left: 117px;
    top: 20px
  }
}

@-webkit-keyframes corpo1 {
  50% {
    left: 117px;
    top: 20px
  }
}

@keyframes corpo2 {
  50% {
    left: 150px;
    top: 5px
  }
}

@-webkit-keyframes corpo2 {
  50% {
    left: 150px;
    top: 5px
  }
}

@keyframes corpo3 {
 50% {
    left: 180px;
    top: 20px
  }
}

@-webkit-keyframes corpo3 {
  50% {
    left: 180px;
    top: 15px
  }
}

@keyframes corpo4 {
  50% {
    left: 200px;
    top: 55px
  }
}

@-webkit-keyframes corpo4 {
  50% {
    left: 200px;
    top: 55px
  }
}

@keyframes corpo5 {
  50% {
    left: 210px;
    top: 75px
  }
}

@-webkit-keyframes corpo5 {
  50% {
    left: 210px;
    top: 75px
  }
}

@keyframes corpo6 {
  50% {
    left: 225px;
    top: 105px
  }
}

@-webkit-keyframes corpo6 {
  50% {
    left: 225px;
    top: 105px
  }
}

@keyframes body {
  0% {
    margin: 0 30%;
  }
}

@-webkit-keyframes body {
  0% {
    margin: 0 30%;
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console