Pen Settings

HTML

CSS

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

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

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.

HTML

              
                <div class="run">
  <div class="footPrint">
    <div></div>
  </div>
  <div class="body-a">
    <div class="body-b">
      <div class="head"></div>
      <div class="body">
        <div class="left">
          <div class="hip">
            <div class="leg">
              <div class="knee">
                <div class="shank"></div>
              </div>
            </div>
          </div>
          <div class="sholder">
            <div class="arm">
              <div class="f-arm">
                <div class="hand">
                  <div class="finger"></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="right">
          <div class="hip">
            <div class="leg">
              <div class="knee">
                <div class="shank"></div>
              </div>
            </div>
          </div>
          <div class="sholder">
            <div class="arm">
              <div class="f-arm">
                <div class="hand">
                  <div class="finger"></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                .run {
  --t: 0.9s;
  --t2: calc(var(--t) * 0.5);
  --h: calc(var(--t) / 2);
  --h2: calc(var(--h) * -1);
  --h3: calc(var(--t) * 0.7);
  --r: 0.25;
}
@keyframes r {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(calc(360 * var(--r) * -1deg));
  }
}
.run:hover {
  --t: 3s;
}
html {
  background-color: #005;
  background-image: linear-gradient(to top, #eef, #cce 30vh, #005 30vh, #005);
  background-repeat: no-repeat;
  min-height: 100vh;
}
body {
  overflow: hidden;
}
.run {
  position: absolute;
  left: 40%;
  top: 40%;
  font-size: 20vmin;
  height: 2em;
  width: 1em;
  cursor: pointer;
}
.run div {
  position: absolute;
  z-index: 1;
  background-color: inherit;
}
.run .head::before {
  content: "";
  display: block;
  background-color: #db7;
  position: absolute;
  width: 0.6em;
  height: 0.6em;
  left: 0%;
  top: 0%;
  transform-origin: 50% 52% 0;
  border-radius: 20% 40% 10% 10%;
  animation: r var(--t) infinite linear reverse;
  box-shadow: 0.15em 0.15em 0 0.05em #f00 inset,
    0.25em -0.01em 0 0.04em #eee inset, 0 -0.12em 0 -0.01em #ccc inset,
    0.25em 0.21em 0 0.02em #db7 inset, 0.2em 0.25em 0 0.05em #ddd inset,
    -0.34em 0.1em 0 -0.22em #db7 inset, -0.28em -0.2em 0 -0.22em #d00,
    -0.35em -0.25em 0 -0.24em #eee, 0.25em 0.125em 0 -0.2em #e95,
    0.2em 0.25em 0 -0.2em #eee, 0 0;
}
.run .head {
  width: 0.6em;
  height: 0.6em;
  left: 0.25em;
  top: -0.6em;
  background-color: hsla(0, 0%, 0%, 0);
  animation: r var(--t) infinite linear;
}
.run .body-a,
.run .body-b {
  --r: 1;
  top: 0;
  left: 0;
  width: 0.9em;
  height: 0.9em;
}
.run .body-a {
  animation: r var(--t) infinite linear;
}
.run .body-b {
  animation: r var(--t) infinite linear reverse;
  transform-origin: 55% 55% 0;
}
.run .body {
  --r: 0.25;
  width: 0.4em;
  height: 1.2em;
  left: calc(50% - 0.4em);
  top: -0.1em;
  transform-origin: center 0.01em 0;
  transform-origin: 55% 48% 0;
  transform: rotate(20deg);
}
.run .body::before {
  content: "";
  display: block;
  width: 0.9em;
  height: 0.9em;
  left: -0.7em;
  position: absolute;
  top: 0;
  border-radius: 50% 0 50% 50%;
  background-color: #fff;
  box-shadow: -0.2em -0.2em 0 -0.2em #aaa inset,
    -0.2em -0.1em 0 0.1em #ddd inset;
  --r: -0.05;
  animation: r var(--t) var(--h) infinite ease alternate;
}
.run .body > div {
  width: 100%;
  height: 100%;
  top: 0;
  border-radius: 10% 70% 10% 0;
  background-color: hsla(0, 80%, 40%, 1);
  box-shadow: 0.1em 0 0 0.01em hsla(0, 0%, 90%, 1);
}
.run .left {
  left: 0;
  z-index: -1;
}
.run .right {
  transform-origin: 0.2em top 0;
  z-index: 1;
  left: 0;
}
.run .sholder,
.run .hip,
.run .knee {
  width: 0.2em;
  height: 0.2em;
  left: calc(50% - 0.1em);
  background-color: hsla(0, 100%, 50%, 1);
  transform-origin: center center 0;
  border-radius: 40%;
}
.run .left .sholder,
.run .left .hip,
.run .left .knee {
  background-color: hsla(0, 100%, 40%, 1);
}
.run .sholder {
  top: -0em;
  left: 0.02em;
  transform: rotate(-30deg);
}
.run .arm {
  width: 0.5em;
  height: 0.2em;
  left: -0.4em;
  top: 0;
  transform-origin: right center 0;
  border-radius: 0.25em;
}
.run .f-arm {
  width: 0.45em;
  height: 0.2em;
  left: -0.4em;
  top: -0.1em;
  transform-origin: right center 0;
  border-radius: 0.25em;
}
.run .body::after,
.run .shank::after,
.run .f-arm::after {
  content: "";
  display: block;
  background-color: #ddd;
  height: 110%;
  width: 30%;
  position: absolute;
  left: 0;
  top: -5%;
  border-radius: 0.2em;
}
.run .shank::after,
.run .body::after {
  height: 15%;
  width: 180%;
  z-index: 10;
  left: -20%;
  top: auto;
  bottom: 0;
  border-radius: 0.2em;
}
.run .shank::after {
  background-color: #d00;
  height: 25%;
  left: -10%;
  bottom: 0%;
  border-radius: 0.05em 0.2em 0.05em 0.05em;
  box-shadow: -0.02em -0.09em 0 -0.04em #d11, -0.03em -0.1em 0 -0.04em #d22,
    -0.03em -0.15em 0 -0.03em #ddd, 0 0;
}
.run .hand {
  width: 0.1em;
  height: 0.2em;
  left: calc(0% - 0.05em);
  top: 0;
  border-radius: 10% 50% 50% 10%;
  background-color: hsl(20, 60%, 70%);
}
.run .finger {
  width: 0.1em;
  height: 0.18em;
  left: calc(0% - 0.1em);
  top: 0.02em;
  border-radius: 50% 0% 0% 50%;
}
.run .hip {
  top: 1.05em;
  transform: rotate(25deg);
}
.run .leg {
  width: 0.2em;
  height: 0.5em;
  left: 0;
  top: 0.1em;
  border-radius: 0.1em;
  transform-origin: center top 0;
}
.run .knee {
  top: 0.3em;
  transform: rotate(85deg);
}
.run .shank {
  width: 0.2em;
  height: 0.6em;
  left: 0;
  top: 0.1em;
  border-radius: 0.1em 0.1em 0 0;
  transform-origin: center top 0;
}
.run .arm {
  animation: r var(--t) var(--h2) infinite ease-in alternate;
}
.run .f-arm {
  transform: rotate(-0.3turn);
}
.run .leg {
  --r: 0.21;
  animation: r var(--t) var(--t2) infinite alternate
    cubic-bezier(0.91, 0.51, 0.15, 0.94);
}
.run .shank {
  --r: 0.23;
  animation: r var(--t) var(--h3) infinite alternate
    cubic-bezier(0.81, 0.51, 0.35, 0.64);
}
.run .right .leg {
  animation-delay: var(--h2);
}
.run .right .shank {
  animation-delay: calc(var(--t2) * -1);
}
.run .left .arm {
  --r: 0.28;
}
.run .right .arm {
  animation-delay: var(--t2);
}
.run .footPrint {
  width: var(--gw);
  height: var(--gw);
  bottom: -0.35em;
  left: calc(50% - var(--gh));
  transform-origin: center bottom 0;
  transform: rotateX(87deg);
  border-radius: 50%;
  --gw: 10em;
  --gh: calc(var(--gw)/2);
}
.run .footPrint div {
  width: 0.5em;
  height: 3em;
  top: 0;
  left: calc(50% - 0.5em);
  height: 100%;
  --delay: calc(var(--t) * 0.2 * -1);
  animation: r infinite var(--t) var(--delay) ease-in;
}
.run .footPrint div::before {
  content: "";
  display: block;
  width: 100%;
  height: 3em;
  border-radius: 50%;
  top: 0;
  left: 0;
  position: absolute;
  box-shadow: 0 0 0.3em hsla(200, 0%, 20%, 0.5);
}

              
            
!

JS

              
                /*
while you hover on him, You can see him Slow motion.
*/
              
            
!
999px

Console