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

              
                .wrapper
  .human
    .human__head
      .human__face
        span
        .human__hair
          div
          div
        .human__hood
      .human__body
        div
          div
        .human__reg.human__reg--right
          div
            div
              div
        .human__arm.human__arm--left
          div
            div
              div
                .stick
        .human__arm.human__arm--right
          div
            div
              div
                .stick

  .drum
    .crash-cymbal
      span
      span
      .cymbal
    .floor
      .tam
        .rim
          div
          div
        .rug
          div.top
          div.top
          div.bottom
          div.bottom
      span
      span
    .snare
      .tam
        .rim
          div
          div
        .rug
          div.top
          div.top
          div.bottom
          div.bottom
      span
      span
      span
    .hightam
      .tam
        .rim
          div
          div
        .rug
          div.top
          div.top
          div.bottom
          div.bottom
      span
    .bass
      .head
      span
      span

    .hi-hat-cymbal
      span
      .cymbal.top
      .cymbal.bottom

              
            
!

CSS

              
                // color
$color-bg: #3f3c52;
$color-hair: #5C517B;
$color-clothes: #3F2A3A;
$color-pants: #2E2230;
$color-skin: #e7c3aa;
$color-shoes: #8F49A2;
$color-black: #2E2230;

$color-drum-rim: #C2B0A3;
$color-drum-head: #F7ECDC;
$color-drum-head-shadow: #E9DFD2;
$color-drum-shell: #45413C;
$color-drum-shell-shadow: #2e2d2b;
$color-drum-foot: #585552;
$color-drum-cymbal: #ffd65d;
$color-drum-stick: #a08561;

$move: 1s;

// human
$head1: 60px;
$face: 42px;
$body1: 80px;
$body2: 40px;
$reg-width: 25px;
$reg-height1: 70px;
$reg-height2: 55px;
$reg-height3: 50px;
$arm-width: 15px;
$arm-height1: 45px;
$arm-height2: 35px;
$arm-height3: 40px;

@mixin keyframes($animation-name) {
  @-webkit-keyframes #{$animation-name} {
    @content;
  }
  @-moz-keyframes #{$animation-name} {
    @content;
  }
  @keyframes #{$animation-name} {
    @content;
  }
}

@mixin animation($animation-name) {
  -webkit-animation: $animation-name;
  -moz-animation: $animation-name;
  animation: $animation-name;
  -webkit-animation-fill-mode: both;
  -moz-animation-fill-mode: both;
  animation-fill-mode: both;
}

@mixin prefixes($property, $value) {
  @each $prefix in -webkit-, -moz-, -ms-, -o-, "" {
    #{$prefix}#{$property}: $value;
  }
}

.wrapper {
  position: absolute;
  width: 280px;
  height: 280px;
  margin: auto;
  top: calc(50% - 140px);
  left: calc(50% - 140px);
}

.drum {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.rim {
  position: absolute;
  width: 100%;
  height: 100%;
  div {
    position: absolute;
    left: -3px;
    width: calc(100% + 6px);
    height: 3px;
    border-radius: 10px;
    background: $color-drum-rim;
  }
}

.rug {
  position: absolute;
  width: 100%;
  height: 100%;

  div {
    position: absolute;
    width: 5px;
    height: 12px;
    background: $color-drum-rim;
    &:before {
      left: 2px;
      width: 1px;
      height: 12px;
      background: $color-drum-rim;
    }

    &.top {
      &:before {
        top: -10px;
      }
    }
    &.bottom {
      &:before {
        bottom: -10px;
      }
    }
  }
}

.bass {
  position: absolute;
  top: 155px;
  left: 65px;
  width: 120px;
  height: 120px;

  .head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: $color-drum-head-shadow;
    border: 3px solid $color-drum-rim;
    @include prefixes(overflow, hidden);
    @include prefixes(box-sizing, border-box);
    @include animation(bass $move * 2 linear infinite);

    &:before {
      top: -85px;
      left: -98px;
      width: 206%;
      height: 149%;
      background: $color-drum-head;
      border-radius: 50%;
      @include prefixes(transform, rotate(55deg));
    }
  }

  span {
    position: absolute;
    display: block;
    bottom: 4px;
    width: 5px;
    height: 10px;
    background: $color-drum-rim;

    &:after {
      top: 10px;
      left: -1px;
      width: 7px;
      height: 12px;
      background: $color-drum-foot;
    }

    &:nth-of-type(1) {
      left: 20px;
      @include prefixes(transform, rotate(30deg));
    }

    &:nth-of-type(2) {
      right: 20px;
      @include prefixes(transform, rotate(-30deg));
    }
  }
}

.floor {
  position: absolute;
  top: 152px;
  left: 40px;
  width: 52px;
  height: 90px;

  .tam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: $color-drum-shell-shadow;
    @include prefixes(box-sizing, border-box);
    @include prefixes(overflow, hidden);

    &:before {
      top: -25px;
      left: -2px;
      width: 150%;
      height: 122%;
      background: $color-drum-shell;
      border-radius: 50%;
    }

    .rim {
      div:nth-of-type(1) {
        top: 0;
      }
      div:nth-of-type(2) {
        bottom: 0;
      }
    }

    .rug {
      div:nth-of-type(1) {
        top: 10px;
        left: 8px;
      }
      div:nth-of-type(2) {
        top: 10px;
        right: 8px;
      }
      div:nth-of-type(3) {
        bottom: 10px;
        left: 8px;
      }
      div:nth-of-type(4) {
        bottom: 10px;
        right: 8px;
      }
    }
  }

  span {
    position: absolute;
    display: block;
    bottom: -30px;
    width: 5px;
    height: 54px;
    background: $color-drum-rim;

    &:before {
      top: 7px;
      left: -2px;
      width: 10px;
      height: 12px;
      background: $color-drum-foot;
    }

    &:after {
      top: 45px;
      left: -1px;
      width: 7px;
      height: 19px;
      background: $color-drum-foot;
    }

    &:nth-of-type(1) {
      left: -8px;
      @include prefixes(transform, rotate(6deg));
    }

    &:nth-of-type(2) {
      right: -8px;
      @include prefixes(transform, rotate(-6deg));
    }
  }
}

.snare {
  position: absolute;
  top: 145px;
  left: 140px;
  width: 60px;
  height: 30px;

  .tam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: $color-drum-shell-shadow;
    @include prefixes(transform, rotate(-9deg));
    @include prefixes(overflow, hidden);
    @include prefixes(box-sizing, border-box);
    @include animation(snare $move * 4 linear infinite);

    &:before {
      top: -15px;
      left: -35px;
      width: 150%;
      height: 122%;
      background: $color-drum-shell;
      border-radius: 50%;
    }

    .rim {
      div:nth-of-type(1) {
        top: 0;
      }
      div:nth-of-type(2) {
        bottom: 0;
      }
    }

    .rug {
      div:nth-of-type(1) {
        top: 10px;
        left: 12px;
      }
      div:nth-of-type(2) {
        top: 10px;
        right: 12px;
      }
      div:nth-of-type(3) {
        bottom: 10px;
        left: 12px;
      }
      div:nth-of-type(4) {
        bottom: 10px;
        right: 12px;
      }
    }
  }

  span {
    position: absolute;
    display: block;
    bottom: -109px;
    width: 5px;
    height: 45px;
    background: $color-drum-rim;

    &:after {
      top: 33px;
      left: -1px;
      width: 7px;
      height: 13px;
      background: $color-drum-foot;
    }

    &:nth-of-type(1) {
      left: 26px;
      bottom: -109px;
      width: 5px;
      height: 110px;
      @include prefixes(transform, rotate(0));

      &:before {
        top: 57px;
        left: -3px;
        width: 11px;
        height: 8px;
        background: $color-drum-foot;
      }
      &:after {
        top: 98px;
      }
    }

    &:nth-of-type(2) {
      right: 19px;
      @include prefixes(transform, rotate(-23deg));
    }

    &:nth-of-type(3) {
      left: 16px;
      @include prefixes(transform, rotate(23deg));
    }
  }
}

.hightam {
  position: absolute;
  top: 114px;
  left: 90px;
  width: 45px;
  height: 40px;

  .tam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: $color-drum-shell-shadow;
    @include prefixes(transform, rotate(14deg));
    @include prefixes(overflow, hidden);
    @include prefixes(box-sizing, border-box);
    @include animation(hightam $move * 4 linear infinite);

    &:before {
      top: -15px;
      left: -35px;
      width: 150%;
      height: 122%;
      background: $color-drum-shell;
      border-radius: 50%;
    }

    .rim {
      div:nth-of-type(1) {
        top: 0;
      }
      div:nth-of-type(2) {
        bottom: 0;
      }
    }

    .rug {
      div:nth-of-type(1) {
        top: 10px;
        left: 8px;
      }
      div:nth-of-type(2) {
        top: 10px;
        right: 8px;
      }
      div:nth-of-type(3) {
        bottom: 10px;
        left: 8px;
      }
      div:nth-of-type(4) {
        bottom: 10px;
        right: 8px;
      }
    }
  }

  span {
    position: absolute;
    display: block;
    top: 18px;
    left: 26px;
    width: 6px;
    height: 25px;
    background: $color-drum-rim;

    &:before {
      top: 0;
      left: -5px;
      width: 8px;
      height: 5px;
      background: $color-drum-rim;
    }

    &:after {
      top: 33px;
      left: -1px;
      width: 7px;
      height: 13px;
      background: $color-drum-foot;
    }
  }
}

.cymbal {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-bottom: 7px solid $color-drum-cymbal;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  @include prefixes(transform-origin, top center);
}

.crash-cymbal {
  position: absolute;
  top: 75px;
  left: -8px;
  width: 75px;
  height: 216px;

  .cymbal {
    top: 15px;
    @include prefixes(transform, rotate(27deg));
    @include animation(crash-cymbal $move * 2.5 linear infinite);
  }

  span {
    position: absolute;
    display: block;
    top: 39px;
    left: 18px;
    width: 3px;
    height: 127px;
    background: $color-drum-rim;

    &:nth-of-type(1) {
      top: 12px;
      left: 20px;
      height: 23px;
      @include prefixes(transform, rotate(40deg));
      @include prefixes(transform-origin, bottom center);


      &:after {
        bottom: -5px;
        left: -1px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: $color-drum-foot;
      }
    }

    &:nth-of-type(2) {

      &:before, &:after {
        top: 120px;
        left: 0px;
        width: 3px;
        height: 50px;
        background: $color-drum-rim;
        @include prefixes(transform-origin, top center);
      }

      &:before {
        @include prefixes(transform, rotate(25deg));
      }

      &:after {
        @include prefixes(transform, rotate(-20deg));
      }
    }
  }
}

.hi-hat-cymbal {
  position: absolute;
  top: 110px;
  right: 0px;
  width: 80px;
  height: 170px;

  .cymbal {
    top: 15px;
    border-bottom: 5px solid $color-drum-cymbal;

    &.top {
      @include animation(hi-hat-cymbal $move linear infinite);
    }

    &.bottom {
      top: 30px;
      border-bottom: none;
      border-top: 5px solid $color-drum-cymbal;
    }
  }

  span {
    position: absolute;
    display: block;
    top: 4px;
    right: 39px;
    width: 3px;
    height: 165px;
    background: $color-drum-rim;

    &:before, &:after {
      top: 120px;
      left: 0px;
      width: 3px;
      height: 50px;
      background: $color-drum-rim;
      @include prefixes(transform-origin, top center);
    }

    &:before {
      @include prefixes(transform, rotate(25deg));
    }

    &:after {
      @include prefixes(transform, rotate(-20deg));
    }
  }
}

.stick {
  position: absolute;
  width: 2px;
  height: 45px;
  background: $color-drum-stick;
  @include prefixes(transform-origin, top center);

  &:before {
    bottom: 64px;
    width: 2px;
    height: 10px;
    background: $color-drum-stick;
  }
}

.human {
  position: absolute;
  top: 22px;
  left: 130px;
  width: 50px;
  height: 270px;
  @include animation(body $move linear infinite);

  // head
  &__head {
    top: 0;
    width: 50px;
    height: 60px;
    height: $head1;
  }

  // face
  &__face {
    top: 11px;
    left: 5px;
    width: 40px;
    height: $face;
    background: $color-skin;
    border-radius: 0 0 50% 50%;
    @include prefixes(transform-origin, bottom center);
    @include animation(face $move * 4 linear infinite);

    // eye
    span {
      position: absolute;
      top: 19px;
      left: 12px;
      width: 15px;

      &:before,
      &:after {
        top: 0;
        background: $color-black;
        width: 2px;
        height: 2px;
      }

      &:before {
        left: 0;
      }

      &:after {
        right: 0;
      }
    }
  }

  // hair
  &__hair {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 2px;
    left: 0;

    > div {
      border-radius: 50%;
      &:before,
      &:after {
        height: 44px;
        border-radius: 50%;
      }
    }

    > div:nth-of-type(1) {
      top: -7px;
      left: -1px;
      width: 41px;
      height: 17px;
      border-radius: 90% 90% 0 0;
      background: $color-hair;

      &:before {
        top: -5px;
        left: -3px;
        width: 47px;
        height: 48px;
      }

      &:after {
        top: -20px;
        left: 5px;
        width: 32px;
        height: 31px;
        border-radius: 50%;
        background: $color-hair;
        @include prefixes(transform, rotate(-31deg));
      }
    }

    > div:nth-of-type(2) {
      top: -7px;
      left: -1px;
      width: 41px;
      height: 17px;
      border-radius: 90% 90% 0 0;

      &:before {
        top: 18px;
        right: -32px;
        width: 51px;
        border-top: 13px solid $color-hair;
        @include prefixes(transform, rotate(79deg));
      }

      &:after {
        top: 18px;
        left: -32px;
        width: 51px;
        border-top: 13px solid $color-hair;
        @include prefixes(transform, rotate(-79deg));
      }
    }
  }

  &__body {
    top: $head1 - 8px;
    left: 0;
    width: 50px;
    height: $body1 + $body2;
    // @include animation(jump_body $move linear infinite);

    > div:nth-of-type(1) {
      top: 0;
      left: 0;
      width: 50px;
      height: $body1;
      background: $color-clothes;
      @include prefixes(transform-origin, top center);
      border-radius: 40% 40% 0 0;

      > div {
        top: $body1 - 10px;
        left: 0;
        width: 55px;
        height: $body2 - 20px;
        background: $color-clothes;
        @include prefixes(transform, rotate(3deg));
      }
    }
  }

  // reg
  &__reg {
    top: $body1 + $body2 - 32px;
    width: 25px;
    height: $reg-height1 + $reg-height2 + $reg-height3;
    @include prefixes(transform-origin, top center);

    > div {
      top: 0;
      left: 0;
      width: 25px;
      height: 25px;
      background: $color-pants;
      border-radius: 50%;
      @include prefixes(transform-origin, center);

      &:before {
        top: 0;
        left: 0;
        width: 25px;
        height: $reg-height1;
        background: $color-pants;
        border-radius: 10px 10px 0 0;
      }

      > div {
        top: $reg-height1 - $reg-width / 2;
        left: 0;
        width: $reg-width;
        height: $reg-width;
        background: $color-pants;
        border-radius: 50%;
        @include prefixes(transform-origin, center);

        &:before {
          top: $reg-height2 + 10;
          left: 4px;
          width: 12px;
          height: 20px;
          background: #642A75;
        }

        &:after {
          top: $reg-width / 2;
          left: 0;
          width: $reg-width;
          height: $reg-height2;
          background: $color-pants;
          border-radius: 3px;
        }

        > div {
          position: absolute;
          top: $reg-height2 + 20px;
          left: 2px;
          width: 20px;
          height: 20px;
          background: $color-shoes;

          &:before,
          &:after {
            width: 0;
            height: 0;
            border-bottom: 0px solid transparent;
          }
        }
      }
    }

    &--right {
      right: -5px;

      > div {
        @include prefixes(transform, rotate(-72deg));
        @include animation(reg_right1 $move linear infinite);

        > div {
          @include prefixes(transform, rotate(84deg));
          @include animation(reg_right2 $move linear infinite);

          > div {
            top: $reg-height2 + 25px;
            @include prefixes(transform, rotate(-11deg));

            &:before {
              top: 5px;
              right: -19px;
              border-left: 20px solid $color-shoes;
              border-top: 15px solid transparent;
              border-radius: 0 0 90% 0;
            }

            &:after {
              top: 0;
              left: -4px;
              border-right: 5px solid $color-shoes;
              border-top: 20px solid transparent;
              border-radius: 0 0 0 50%;
            }
            // @include animation(jump_reg_right3 $move linear infinite);
          }
        }
      }
    }
  }

  // arm
  &__arm {
    top: 2px;
    width: 20px;
    height: $arm-height1 + $arm-height2 + $arm-height3;
    @include prefixes(transform-origin, top center);

    > div {
      top: 0;
      left: 0;
      width: $arm-width;
      height: $arm-width;
      background: $color-clothes;
      border-radius: 50%;
      @include prefixes(transform-origin, center);
      @include prefixes(transform, rotate(25deg));

      &:before {
        top: $arm-width / 2;
        left: 0;
        width: $arm-width;
        height: $arm-height1;
        background: $color-clothes;
      }

      &:after {
        top: 0;
        right: -13px;
        width: 0;
        height: 0;
        border-left: 15px solid $color-clothes;
        border-top: 0px solid transparent;
        border-bottom: $arm-height1 solid transparent;
      }

      > div {
        top: $arm-height1;
        left: 0;
        width: $arm-width;
        height: $arm-width;
        background: $color-skin;
        border-radius: 50%;
        @include prefixes(transform-origin, center);
        @include prefixes(transform, rotate(-13deg));

        &:after {
          top: $arm-width / 2;
          left: 0;
          width: $arm-width;
          height: $arm-height2;
          background: $color-skin;
          border-radius: 3px;
        }

        > div {
          top: 35px;
          left: -2px;
          width: 20px;
          height: 20px;
          border-radius: 50%;
          background: $color-skin;
          &:before {
            top: 6px;
            left: 7px;
            width: 8px;
            height: 9px;
            border-radius: 50%;
            background: $color-skin;
            @include prefixes(transform, rotate(27deg));
          }
        }
      }
    }

    &--left {

      > div {
        @include prefixes(transform, rotate(30deg));
        @include animation(arm_left1 $move linear infinite);
        &:after {
          content: none;
        }

        > div {
          @include prefixes(transform, rotate(-137deg));
          @include animation(arm_left2 $move * 2.5 linear infinite);

          > div {
            @include animation(arm_left3 5s linear infinite);
            @include prefixes(transform, rotate(-8deg));

            .stick {
              top: 20px;
              left: 8px;
              @include prefixes(transform, rotate(-9deg));
            }
          }
        }
      }
    }

    &--right {
      right: -15px;
      left: 33px;

      > div {
        @include prefixes(transform, rotate(-64deg));
        @include animation(arm_right1 $move * 4 linear infinite);

        &:after {
          content: none;
        }

        > div {
          @include prefixes(transform, rotate(84deg));
          @include animation(arm_right2 $move * 4 linear infinite);

          > div {
            @include prefixes(transform, rotate(-46deg));
            @include animation(arm_right3 $move * 4 linear infinite);

            .stick {
              top: 14px;
              left: 0px;
              @include prefixes(transform, rotate(70deg));
            }
          }
        }
      }
    }
  }

  div {
    position: absolute;
    @include prefixes(box-sizing, border-box);

    &:before,
    &:after {
      @include prefixes(transform-origin, top center);
      @include prefixes(box-sizing, border-box);
    }
  }
}


@include keyframes(bass) {
  0% { @include prefixes(transform, scale(1.0)); }
  10% { @include prefixes(transform, scale(1.0)); }
  15% { @include prefixes(transform, scale(1.03)); }
  20% { @include prefixes(transform, scale(1.0)); }
  50% { @include prefixes(transform, scale(1.0)); }
  55% { @include prefixes(transform, scale(1.03)); }
  60% { @include prefixes(transform, scale(1.0)); }
  65% { @include prefixes(transform, scale(1.03)); }
  70% { @include prefixes(transform, scale(1.0)); }
  100% { @include prefixes(transform, scale(1.0)); }
}

@include keyframes(snare) {
  0% { @include prefixes(transform, rotate(3deg)); }
  3% { @include prefixes(transform, rotate(3deg)); }
  7% { @include prefixes(transform, rotate(8deg)); }
  10% { @include prefixes(transform, rotate(0)); }
  13% { @include prefixes(transform, rotate(3deg)); }
  23% { @include prefixes(transform, rotate(3deg)); }
  27% { @include prefixes(transform, rotate(8deg)); }
  30% { @include prefixes(transform, rotate(0)); }
  33% { @include prefixes(transform, rotate(3deg)); }
  43% { @include prefixes(transform, rotate(3deg)); }
  47% { @include prefixes(transform, rotate(8deg)); }
  50% { @include prefixes(transform, rotate(0)); }
  53% { @include prefixes(transform, rotate(3deg)); }
  100% { @include prefixes(transform, rotate(3deg)); }
}

@include keyframes(hightam) {
  0% { @include prefixes(transform, rotate(3deg)); }
  62% { @include prefixes(transform, rotate(3deg)); }
  65% { @include prefixes(transform, rotate(10deg)); }
  70% { @include prefixes(transform, rotate(0)); }
  72% { @include prefixes(transform, rotate(3deg)); }
  83% { @include prefixes(transform, rotate(3deg)); }
  85% { @include prefixes(transform, rotate(10deg)); }
  90% { @include prefixes(transform, rotate(0)); }
  92% { @include prefixes(transform, rotate(3deg)); }
  100% { @include prefixes(transform, rotate(3deg)); }
}

@include keyframes(floor) {
  0% { @include prefixes(transform, rotate(0)); }
  10% { @include prefixes(transform, rotate(3deg)); }
  20% { @include prefixes(transform, rotate(-3deg)); }
  30% { @include prefixes(transform, rotate(0)); }
  100% { @include prefixes(transform, rotate(0)); }
}

@include keyframes(crash-cymbal) {
  0% { @include prefixes(transform, rotate(40deg)); }
  15% { @include prefixes(transform, rotate(6deg)); }
  20% { @include prefixes(transform, rotate(40deg)); }
  35% { @include prefixes(transform, rotate(6deg)); }
  40% { @include prefixes(transform, rotate(40deg)); }
  55% { @include prefixes(transform, rotate(6deg)); }
  60% { @include prefixes(transform, rotate(40deg)); }
  75% { @include prefixes(transform, rotate(6deg)); }
  80% { @include prefixes(transform, rotate(40deg)); }
  95% { @include prefixes(transform, rotate(6deg)); }
  100% { @include prefixes(transform, rotate(40deg)); }
}

@include keyframes(hi-hat-cymbal) {
  0% { top: 15px; }
  25% { top: 25px; }
  50% { top: 15px; }
  75% { top: 25px; }
  100% { top: 15px; }
}

@include keyframes(reg_right1) {
  0% { @include prefixes(transform, rotate(-80deg)); }
  25% { @include prefixes(transform, rotate(-70deg)); }
  50% { @include prefixes(transform, rotate(-80deg)); }
  75% { @include prefixes(transform, rotate(-70deg)); }
  100% { @include prefixes(transform, rotate(-80deg)); }
}

@include keyframes(reg_right2) {
  0% { @include prefixes(transform, rotate(92deg)); }
  25% { @include prefixes(transform, rotate(82deg)); }
  50% { @include prefixes(transform, rotate(92deg)); }
  75% { @include prefixes(transform, rotate(82deg)); }
  100% { @include prefixes(transform, rotate(92deg)); }
}

@include keyframes(arm_left1) {
  0% { @include prefixes(transform, rotate(30deg)); }
  52.5% { @include prefixes(transform, rotate(30deg)); }
  57% { @include prefixes(transform, rotate(30deg)); }
  70.5% { @include prefixes(transform, rotate(30deg)); }
}

@include keyframes(arm_left2) {
  0% { @include prefixes(transform, rotate(57deg)); }
  15% { @include prefixes(transform, rotate(109deg)); }
  20% { @include prefixes(transform, rotate(57deg)); }
  35% { @include prefixes(transform, rotate(109deg)); }
  40% { @include prefixes(transform, rotate(57deg)); }
  55% { @include prefixes(transform, rotate(109deg)); }
  60% { @include prefixes(transform, rotate(57deg)); }
  75% { @include prefixes(transform, rotate(109deg)); }
  80% { @include prefixes(transform, rotate(57deg)); }
  95% { @include prefixes(transform, rotate(109deg)); }
  100% { @include prefixes(transform, rotate(57deg)); }
}

@include keyframes(arm_left3) {
  0% { @include prefixes(transform, rotate(30deg)); }
  15% { @include prefixes(transform, rotate(45deg)); }
  20% { @include prefixes(transform, rotate(30deg)); }
  35% { @include prefixes(transform, rotate(45deg)); }
  40% { @include prefixes(transform, rotate(30deg)); }
  55% { @include prefixes(transform, rotate(45deg)); }
  60% { @include prefixes(transform, rotate(30deg)); }
  75% { @include prefixes(transform, rotate(45deg)); }
  80% { @include prefixes(transform, rotate(30deg)); }
  95% { @include prefixes(transform, rotate(45deg)); }
  100% { @include prefixes(transform, rotate(30deg)); }
}

@include keyframes(arm_right1) {
  0% { @include prefixes(transform, rotate(-54deg)); }
  40% { @include prefixes(transform, rotate(-54deg)); }
  57% { @include prefixes(transform, rotate(12deg)); }
  60% { @include prefixes(transform, rotate(12deg)); }
  77% { @include prefixes(transform, rotate(12deg)); }
  80% { @include prefixes(transform, rotate(12deg)); }
  97% { @include prefixes(transform, rotate(-54deg)); }
  100% { @include prefixes(transform, rotate(-54deg)); }
}

@include keyframes(arm_right2) {
  0% { @include prefixes(transform, rotate(83deg)); }
  17% { @include prefixes(transform, rotate(153deg)); }
  20% { @include prefixes(transform, rotate(83deg)); }
  37% { @include prefixes(transform, rotate(153deg)); }
  40% { @include prefixes(transform, rotate(83deg)); }
  57% { @include prefixes(transform, rotate(153deg)); }
  60% { @include prefixes(transform, rotate(83deg)); }
  77% { @include prefixes(transform, rotate(153deg)); }
  80% { @include prefixes(transform, rotate(83deg)); }
  97% { @include prefixes(transform, rotate(153deg)); }
  100% { @include prefixes(transform, rotate(153deg)); }
}

@include keyframes(arm_right3) {
  0% { @include prefixes(transform, rotate(0)); }
  40% { @include prefixes(transform, rotate(0)); }
  57% { @include prefixes(transform, rotate(-46deg)); }
  60% { @include prefixes(transform, rotate(-46deg)); }
  97% { @include prefixes(transform, rotate(0)); }
  100% { @include prefixes(transform, rotate(0)); }
}

@include keyframes(face) {
  0% { @include prefixes(transform, rotate(-13deg) translate(0, 0)); }
  45% { @include prefixes(transform, rotate(-13deg) translate(0, 0)); }
  50% { @include prefixes(transform, rotate(0) translate(0, 0)); }
  60% { @include prefixes(transform, rotate(0) translate(0, 0)); }
  65% { @include prefixes(transform, rotate(0) translate(0, 0)); }
  70% { @include prefixes(transform, rotate(-13deg) translate(0, 0)); }
  80% { @include prefixes(transform, rotate(0) translate(0, 0)); }
  100% { @include prefixes(transform, rotate(-13deg) translate(0, 0)); }
}

@include keyframes(body) {
  0% { top: 22px; }
  25% { top: 24px; }
  50% { top: 22px; }
  75% { top: 24px; }
  100% { top: 22px; }
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  position: relative;
  display: flex;
  display: -webkit-box;
  display: -ms-flexbox;
  font-family: "Cute Font", cursive;
  margin: 0;
  background: $color-bg;
}

* {
  position: relative;
  &:before,
  &:after {
    position: absolute;
    content: "";
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console