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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                 <div class="container">
   <div class="forest"></div>
   <div class="trees">
     <div class="tree">
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
     </div>
     <div class="tree">
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
       <div class="leaf"></div>
     </div>
     <div class="tree"></div>
     <div class="tree"></div>
     <div class="tree"></div>
   </div>

   <div class="shrubs">
     <div class="shrub">
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
     </div>
     <div class="shrub">
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
     </div>
     <div class="shrub">
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
     </div>
     <div class="shrub">
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
     </div>
     <div class="shrub">
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
       <div class="shrub-leaf"></div>
     </div>
   </div>

   <div class="grass"></div>
   <div class="animation-container">
     <div class="bulba-container">
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
     </div>
     <div class="bulba-container">
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
     </div>
     <div class="bulba-container">
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
       <div class="bulbasaur">
         <div class="bulbs">
           <div class="bulb"></div>
         </div>
         <div class="body">
           <div class="spot"></div>
         </div>
         <div class="head">
           <div class="eye">
             <div class="pupil"></div>
           </div>
           <div class="eye-lid"></div>
           <div class="smile"></div>
           <div class="spot"></div>
         </div>

         <div class="ears"></div>

         <div class="hind-legs">
           <div class="leg"></div>
           <div class="leg"></div>
         </div>
         <div class="legs">
           <div class="leg">
             <div class="spot"></div>
           </div>
           <div class="leg">
             <div class="spot"></div>
           </div>
         </div>

         <div class="spots">
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
           <div class="spot"></div>
         </div>
       </div>
     </div>
   </div>

   <!-- <div class="bulbasaur">
        <div class="bulbs">
          <div class="bulb"></div>
        </div>
        <div class="body">
          <div class="spot"></div>
        </div>
        <div class="head">
          <div class="eye">
            <div class="pupil"></div>
          </div>
          <div class="eye-lid"></div>
          <div class="smile"></div>
          <div class="spot"></div>
        </div>

        <div class="ears"></div>

        <div class="hind-legs">
          <div class="leg"></div>
          <div class="leg"></div>
        </div>
        <div class="legs">
          <div class="leg">
            <div class="spot"></div>
          </div>
          <div class="leg">
            <div class="spot"></div>
          </div>
        </div>

        <div class="spots">
          <div class="spot"></div>
          <div class="spot"></div>
          <div class="spot"></div>
          <div class="spot"></div>
          <div class="spot"></div>
        </div>
      </div> -->
   <div class="bush">
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
   </div>
   <div class="big-tree">
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
     <div class="leaf"></div>
   </div>
   <ul class="sparkles">
     <li class="sparkle one"></li>
     <li class="sparkle one"></li>
     <li class="sparkle one"></li>
     <li class="sparkle one"></li>
     <li class="sparkle one"></li>
     <li class="sparkle one"></li>
     <li class="sparkle one"></li>
     <li class="sparkle two"></li>
     <li class="sparkle two"></li>
     <li class="sparkle two"></li>
     <li class="sparkle two"></li>
     <li class="sparkle two"></li>
     <li class="sparkle two"></li>
     <li class="sparkle two"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle three"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle four"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle five"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle six"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle seven"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
     <li class="sparkle eight"></li>
   </ul>
 </div>
              
            
!

CSS

              
                $sky-gradient-color: rgb(255, 205, 214);
$sky-gradient: to bottom, #d9a7c7 20%, #fffcdc 50%;

// $sky-gradient-color: rgb(255, 205, 214);
// $sky-gradient: to bottom, #d9a7c7 20%, #d4f0ff 40%;

$grass-gradient-color: #11998e;
$grass-gradient-color: #085078;
$grass-gradient: to bottom, #6cc7bc, #085078;

$bush-base-color: #000033;
$bush-mid-color: darken(#117299, 10%);

$background-trees-color: darken(#55a5b9, 8%);
$background-trees-color: #3992ce;
$background-trees-color: #117299;

$tree-box-shadow: darken($background-trees-color, 5%);
$background-forest-color: #295980;

$forest-gradient: to bottom, #004e92, #000428;
$big-tree-color: $bush-base-color;

$head-radius-top: 50% 25px;
$head-radius-bottom: 18px;
$bulbasaur-body: #56ddff;
$bulbasaur-spot: darken($bulbasaur-body, 25%);
$bulb: #009682;
$bulb-dark: darken($bulb, 10%);

$flight: 30s;
$sparkle-colors: #fffce6, #ffeefc, #f3ffe4, #e9fbff;

@function randomNum($min, $max) {
  $rand: random();
  @return ($min + floor($rand * (($max - $min) + 1)));
}

@mixin linear-gradient($fallback, $gradient-args...) {
  background-color: $fallback;
  -webkit-linear-gradient: linear-gradient($gradient-args);
  background-image: linear-gradient($gradient-args);
}

@mixin sparkleColor($color) {
  background-color: $color;
  box-shadow: 0px 0px 10px $color;
}

@mixin flight($aniName, $x, $y) {
  @keyframes #{$aniName} {
    95% {
      opacity: 1;
    }
    100% {
      transform: translate($x, $y);
      opacity: 0;
    }
  }
}

@mixin animateSparkles($delay, $start, $end, $ani, $x, $y, $inc, $delta) {
  @include flight($ani, $x, $y);
  @for $i from $start through $end {
    &:nth-child(#{$i}) {
      animation: #{$ani} $flight + $inc $delay infinite;
      $delay: $delay + $delta;
    }
  }
}

body {
  width: 100%;
  height: 100%;
  background-color: #fffaf0;
}

ul {
  list-style: none;
}

.container {
  position: absolute;
  width: 450px;
  height: 450px;
  transform: translate(-50%, -50%) rotate(5deg);
  left: 50%;
  top: 50%;
  border-radius: 100%;
  @include linear-gradient($sky-gradient-color, $sky-gradient);
  overflow: hidden;

  & > * {
    position: absolute;

    &:before,
    &:after {
      content: "";
      position: absolute;
    }
  }
}
.forest,
.trees {
  width: 100%;
  height: 100px;
}

.trees {
  top: 180px;

  .tree {
    position: absolute;
    background-color: $background-trees-color;
    border-radius: 100%;
    box-shadow: inset 0px -5px $tree-box-shadow;

    & > .leaf {
      position: absolute;
      border-radius: 100%;
    }

    &:nth-child(1) {
      width: 100px;
      height: 100px;
      left: -15px;
      & > .leaf {
        background-color: $background-trees-color;

        &:nth-child(1) {
          width: 80px;
          height: 80px;
          left: 50px;
          top: -20px;
          box-shadow: inset -2px 2px $tree-box-shadow;
        }

        &:nth-child(2) {
          width: 60px;
          height: 60px;
          bottom: 10px;
          left: 80px;
          box-shadow: inset 0 -5px $tree-box-shadow,
            inset -1px -1px $tree-box-shadow;
        }

        &:nth-child(3) {
          width: 80px;
          height: 80px;
          top: -50px;
          left: 10px;
        }

        &:nth-child(4) {
          width: 45px;
          height: 45px;
          bottom: -10px;
          left: 40px;
          box-shadow: inset 0 -5px $tree-box-shadow;
        }

        &:nth-child(5) {
          width: 30px;
          height: 30px;
          bottom: -10px;
          left: 55px;
          box-shadow: inset 0 -5px $tree-box-shadow;
        }

        &:nth-child(6) {
          width: 25px;
          height: 25px;
          bottom: 5px;
          left: 75px;
          box-shadow: inset 0 -3px 2px $tree-box-shadow;
        }
      }
    }

    &:nth-child(2) {
      $leaf-box-shadow: darken($background-trees-color, 8%);
      background-color: darken($background-trees-color, 2%);
      width: 80px;
      height: 80px;
      left: 135px;
      top: 0;
      z-index: -1;
      box-shadow: inset 0px -10px $leaf-box-shadow;

      & > .leaf {
        background-color: darken($background-trees-color, 2%);

        &:nth-child(1) {
          width: 60px;
          height: 60px;
          left: -40px;
          box-shadow: inset 5px -5px $leaf-box-shadow;
        }

        &:nth-child(2) {
          width: 40px;
          height: 40px;
          left: -20px;
          top: 40px;
          box-shadow: inset 5px -5px $leaf-box-shadow;
        }

        &:nth-child(3) {
          width: 20px;
          height: 20px;
          left: 10px;
          top: 65px;
          box-shadow: inset 0px -5px $leaf-box-shadow;
        }

        &:nth-child(4) {
          width: 20px;
          height: 20px;
          left: 6px;
          top: -8px;
        }

        &:nth-child(5) {
          width: 30px;
          height: 30px;
          left: -15px;
          top: -15px;
        }

        &:nth-child(6) {
          width: 50px;
          height: 50px;
          left: 60px;
          top: 35px;
        }
      }
    }

    &:nth-child(3) {
      width: 80px;
      height: 80px;
      right: 140px;
      top: 40px;
    }
  }
}

.shrubs {
  width: 100%;
  height: 100px;
  bottom: 90px;
  display: flex;
  justify-content: center;

  .shrub {
    flex: 1 0 auto;
    height: 100%;
    width: auto;
    border-radius: 100%;
    margin: -10px;
    background-color: $bush-mid-color;

    .shrub-leaf {
      background-color: $bush-mid-color;
      position: absolute;
      border-radius: 100%;
    }

    &:nth-child(1) {
      & > .shrub-leaf {
        &:nth-child(1) {
          width: 40px;
          height: 40px;
          top: -60%;
        }
        &:nth-child(2) {
          width: 70px;
          height: 70px;
          top: -50%;
          left: 0%;
        }
        &:nth-child(3) {
          width: 30px;
          height: 30px;
          top: -65%;
          left: 5%;
        }
        &:nth-child(4) {
          width: 35px;
          height: 35px;
          left: 18%;
          top: -20%;
        }
        &:nth-child(5) {
          width: 20px;
          height: 20px;
          top: -30%;
          left: 15%;
        }
      }
    }

    &:nth-child(2) {
      & > .shrub-leaf {
        &:nth-child(1) {
          width: 40px;
          height: 40px;
          top: -40%;
          left: 30%;
        }

        &:nth-child(2) {
          width: 28px;
          height: 28px;
          top: -35%;
          left: 26%;
        }
        &:nth-child(3) {
          width: 20px;
          height: 20px;
          top: -50%;
          left: 28%;
        }
        &:nth-child(4) {
          width: 35px;
          height: 35px;
          left: 35%;
          top: -20%;
        }

        &:nth-child(5) {
          width: 25px;
          height: 25px;
          top: -55%;
          left: 31%;
        }
      }
    }

    &:nth-child(3) {
      margin-top: 10px;
      & > .shrub-leaf {
        margin-top: 10px;
        &:nth-child(1) {
          width: 35px;
          height: 35px;
          top: -25%;
          left: 45%;
        }

        &:nth-child(2) {
          width: 25px;
          height: 25px;
          top: -30%;
          left: 50%;
        }

        &:nth-child(3) {
          width: 20px;
          height: 20px;
          top: -40%;
          left: 38%;
        }

        &:nth-child(4) {
          width: 40px;
          height: 40px;
          left: 38%;
          top: -20%;
        }

        &:nth-child(5) {
          width: 35px;
          height: 35px;
          top: -15%;
          left: 52%;
        }

        &:nth-child(6) {
          width: 15px;
          height: 15px;
          top: -25%;
          left: 54%;
        }
      }
    }

    &:nth-child(4) {
      margin-top: -25px;
      & > .shrub-leaf {
        margin-top: -10px;
        &:nth-child(1) {
          width: 50px;
          height: 50px;
          top: -35%;
          left: 60%;
        }

        &:nth-child(2) {
          width: 25px;
          height: 25px;
          top: -10%;
          left: 57%;
        }

        &:nth-child(3) {
          width: 30px;
          height: 30px;
          top: -40%;
          left: 68%;
        }

        &:nth-child(4) {
          width: 40px;
          height: 40px;
          left: 70%;
          top: -25%;
        }

        &:nth-child(5) {
          width: 25px;
          height: 25px;
          top: -15%;
          left: 75%;
        }
      }
    }

    &:nth-child(5) {
      & > .shrub-leaf {
        &:nth-child(1) {
          width: 50px;
          height: 50px;
          top: -35%;
          left: 75%;
        }

        &:nth-child(2) {
          width: 25px;
          height: 25px;
          top: -25%;
          left: 85%;
        }

        &:nth-child(3) {
          width: 20px;
          height: 20px;
          top: -40%;
          left: 84%;
        }
      }
    }
  }
}

.grass {
  width: 100%;
  height: 200px;
  bottom: -60px;
  right: 10px;
  @include linear-gradient($grass-gradient-color, $grass-gradient);
  transform-origin: center;
}

.bulbasaur {
  width: 60px;
  height: 50px;
  top: 293px;
  right: 35px;
  transform: rotate(-6deg);
  will-change: transform;

  &:before {
    content: "";
    position: absolute;
    width: 80px;
    height: 15px;
    top: 8px;
    right: 5px;
    border-radius: 100%;
    transform: rotate(6deg);
    background-color: rgba(0, 0, 0, 0.2);
  }

  .bulbs {
    position: absolute;
    left: -10px;
    top: -8px;
    transform: rotate(15deg);
    z-index: 2;
    animation: bulbMove 1.5s infinite;

    &:before {
      position: absolute;
      content: "";
      width: 38px;
      height: 38px;
      background-color: $bulb-dark;
      border-bottom-left-radius: 100%;
      border-bottom-right-radius: 100%;
      border-top-left-radius: 100%;
      right: 20px;
      bottom: 30px;
      left: 15px;
      transform: rotate(-20deg);
      z-index: 3;
    }
    &:after {
      position: absolute;
      content: "";
      width: 35px;
      height: 35px;
      background-color: $bulb-dark;
      border-bottom-left-radius: 100%;
      border-bottom-right-radius: 100%;
      border-top-right-radius: 100%;
      left: 40px;
      bottom: 30px;
      transform: rotate(45deg);
      z-index: 2;
    }

    .bulb {
      position: absolute;
      width: 40px;
      height: 40px;
      background-color: $bulb;
      bottom: 30px;
      left: 25px;
      border-bottom-left-radius: 100%;
      border-bottom-right-radius: 100%;
      border-top-left-radius: 100%;
      transform: rotate(-35deg);
      z-index: 3;
    }
  }
  .body {
    position: relative;
    width: 105%;
    height: 100%;
    bottom: 35px;
    border-radius: 39% 61% 31% 69% / 54% 41% 59% 46%;
    background-color: $bulbasaur-body;
    overflow: hidden;
    animation: bodyBounce 1.5s infinite;

    & .spot {
      position: absolute;
      width: 8px;
      height: 8px;
      background-color: $bulbasaur-spot;
      right: -5px;
      top: 15px;
      border-radius: 20% / 60%;
      transform: skew(5deg);
    }
  }

  .head {
    position: absolute;
    width: 55px;
    height: 50px;
    background-color: $bulbasaur-body;
    border-radius: 51% 49% 20% 80% / 67% 18% 82% 33%;
    bottom: 45px;
    right: 30px;
    z-index: 3;
    overflow: hidden;
    animation: headMove 1.5s infinite;

    .spot {
      position: absolute;

      &:before,
      &:after {
        content: "";
        position: absolute;
        background-color: $bulbasaur-spot;
      }

      &:before {
        width: 8px;
        height: 8px;
        left: 7px;
        top: 5px;
        transform: rotate(30deg);
        border-radius: 40% 20% / 50% 60%;
      }

      &:after {
        width: 5px;
        height: 4px;
        left: 2px;
        top: 15px;
        transform: rotate(50deg);
        border-radius: 40% 20% / 50% 60%;
      }
    }

    .eye {
      width: 14px;
      height: 16px;
      background-color: white;
      border-radius: 88% 12% 11% 89% / 83% 47% 53% 17%;
      overflow: hidden;
      position: absolute;
      left: 15px;
      top: 13px;
      transform: rotate(5deg);
      border: 1px solid $background-forest-color;

      .pupil {
        position: absolute;
        width: 12px;
        height: 15px;
        border-radius: 100%;
        left: -2px;
        background-image: -webkit-radial-gradient(
            1px 5px at center,
            white 100%,
            transparent
          ),
          -webkit-radial-gradient(#df005d 100%, transparent);
        background-image: radial-gradient(
            1px 5px at center,
            white 100%,
            transparent
          ),
          radial-gradient(#df005d 100%, transparent);
      }
    }

    .eye-lid {
      position: absolute;
      width: 1px;
      height: 8px;
      background-color: darken($bulbasaur-body, 25%);
      border-radius: 100px;
      left: 22px;
      transform: rotate(60deg);
      top: 8px;
    }

    .smile {
      position: absolute;
      width: 10px;
      height: 6px;
      border-radius: 100%;
      border-top: 1px solid $bush-mid-color;
      top: 32px;
      transform: rotate(5deg);
      left: -2px;

      &:after {
        position: absolute;
        content: "";
        width: 15px;
        height: 6px;
        border-radius: 100%;
        border-bottom: 1px solid $bush-mid-color;
        top: -5px;
        left: 6px;
      }
    }
  }

  .ears {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 88% 12% 8% 92% / 91% 94% 6% 9%;
    transform: rotate(260deg);
    background-color: $bulbasaur-body;
    bottom: 76px;
    left: 15px;
    z-index: 3;
    animation: earMove 1.5s infinite;
  }

  .legs {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 15%;

    .leg {
      position: absolute;
      width: 20px;
      height: 22px;
      border-radius: 10% 10% 28% 32% / 0% 0% 53% 60%;
      background-color: $bulbasaur-body;
    }

    .leg:nth-child(1) {
      left: -5px;
      & .spot {
        position: absolute;
        width: 7px;
        height: 6px;
        top: 10px;
        left: 4px;
        z-index: 10;
        background-color: $bulbasaur-spot;
        border-radius: 20% / 30%;
        transform: skewY(-35deg);
      }
      animation: moveLeg 1.5s ease infinite;
    }

    .leg:nth-child(2) {
      bottom: 45%;
      left: 30px;

      & .spot {
        position: absolute;
        width: 12px;
        height: 10px;
        background-color: $bulbasaur-spot;
        top: 5px;
        left: 4px;
        border-radius: 35% 21% 50% 43% / 54% 60% 70% 60%;
        transform: skewY(-20deg) skewX(10deg);
      }
      animation: moveLeg 1.5s 0.5s infinite;
    }
  }

  .hind-legs {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 17%;

    & .leg {
      background-color: darken($bulbasaur-spot, 10%);
      position: absolute;
      width: 20px;
      height: 22px;
      border-radius: 10% 10% 28% 32% / 0% 0% 53% 60%;
      z-index: -2;

      &:nth-child(1) {
        animation: moveHindLeg 1.5s 0.8s infinite;
      }

      &:nth-child(2) {
        left: 32px;
        bottom: 45%;
        animation: moveHindLeg 1.5s 1s infinite;
      }
    }
  }

  .spots {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 100%;
    z-index: 3;

    .spot {
      position: absolute;
      background-color: $bulbasaur-spot;

      &:nth-child(1) {
        // fancy border radius:
        // first 4 numbers define horizontal raidii
        // second set defines vertical raidii
        width: 18px;
        height: 12px;
        left: 30px;
        top: 28px;
        transform: rotate(-5deg);
        border-radius: 30% 72% 90% 40% / 40% 78% 51% 60%;
      }

      &:nth-child(2) {
        width: 5px;
        height: 3px;
        left: 45px;
        top: 40px;
        border-radius: 30% 80% 50% 40% / 45% 20% 20% 60%;
        transform: skew(10deg);
      }
    }
  }
}

.animation-container {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  top: 110px;
}

.bulba-container {
  min-width: 450px;
  height: 240px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  position: relative;
  animation: bulbaWalk 25s linear infinite;
}

.bush {
  width: 130px;
  height: 130px;
  left: -15%;
  top: 40%;
  background-color: $bush-base-color;
  border-radius: 100%;
  z-index: 10;

  &:before {
    width: 150px;
    height: 150px;
    background-color: $bush-base-color;
    top: 50%;
    left: 15%;
    border-radius: 100%;
  }

  &:after {
    width: 100px;
    height: 100px;
    background-color: $bush-base-color;
    border-radius: 100%;
    top: 130%;
    left: 100%;
  }

  & > .leaf {
    background-color: $bush-base-color;
    position: absolute;
    border-radius: 100%;

    &:nth-child(1) {
      width: 50px;
      height: 50px;
      left: 90%;
      top: 40%;
    }

    &:nth-child(2) {
      width: 30px;
      height: 30px;
      left: 90%;
      top: 25%;
    }

    &:nth-child(3) {
      width: 50px;
      height: 50px;
      left: 120%;
      top: 110%;
    }

    &:nth-child(4) {
      width: 60px;
      height: 60px;
      top: 180%;
      left: 150%;
    }

    &:nth-child(5) {
      width: 60px;
      height: 60px;
      top: 140%;
      left: 150%;
    }

    &:nth-child(6) {
      width: 30px;
      height: 30px;
      top: 130%;
      left: 150%;
    }

    &:nth-child(7) {
      width: 30px;
      height: 30px;
      top: 30%;
      left: 105%;
    }

    &:nth-child(8) {
      width: 20px;
      height: 20px;
      top: 20%;
      left: 105%;
    }

    &:nth-child(9) {
      width: 40px;
      height: 40px;
      left: 115%;
      top: 48%;
    }
  }
}

.big-tree {
  width: 160px;
  height: 160px;
  background-color: $big-tree-color;
  left: 70%;
  top: 10%;
  border-radius: 100%;
  z-index: 10;

  &:before,
  &:after {
    background-color: $big-tree-color;
    border-radius: 100%;
  }

  &:before {
    width: 150px;
    height: 150px;
    right: 50%;
    top: -50%;
  }

  &:after {
    width: 100px;
    height: 100px;
    right: 120%;
    top: -10%;
  }

  & > .leaf {
    background-color: $big-tree-color;
    border-radius: 100%;
    position: absolute;

    &:nth-child(1) {
      width: 60px;
      height: 60px;
      top: -45%;
      right: 130%;
    }

    &:nth-child(2) {
      width: 30px;
      height: 30px;
      top: 40%;
      right: 120%;
    }

    &:nth-child(3) {
      width: 30px;
      height: 30px;
      top: 30%;
      right: 110%;
    }

    &:nth-child(4) {
      width: 35px;
      height: 35px;
      top: 35%;
      right: 90%;
    }
  }
}

.sparkles {
  position: absolute;
  width: 120%;
  height: 190px;
  top: 30%;
  left: -45px;
  .sparkle {
    position: absolute;
    border-radius: 100%;
    @for $i from 1 through 64 {
      $size: randomNum(1px, 7px);
      &:nth-child(#{$i}) {
        width: $size;
        height: $size;
        $index: randomNum(1, 4);
        @include sparkleColor(nth($sparkle-colors, $index));
      }
    }
  }
}

.one {
  right: 0;
  top: 0;
  @include animateSparkles(0s, 1, 4, flyOne, -700px, 50px, 0, 6.44);
}

.two {
  right: 0;
  @include animateSparkles(2.7s, 5, 8, flyTwo, -700px, 205px, 6, 5.3);
}

.three {
  right: 0;
  top: 100%;
  @include animateSparkles(1.4s, 9, 12, flyThree, -700px, -220px, 2, 8.5);
}
.four {
  right: 0;
  top: 100%;
  @include animateSparkles(5.8s, 13, 16, flyFour, -700px, -200px, 10, 4.6);
}

.five {
  right: 0;
  top: 50%;
  @include animateSparkles(8.7s, 17, 20, flyFive, -700px, 0px, 20, 5.7);
}

.six {
  right: 0;
  top: 50%;
  @include animateSparkles(10.6s, 21, 24, flySix, -700px, 0px, 8.5, 4.4);
}

.seven {
  right: 0;
  top: 25%;
  @include animateSparkles(5s, 25, 28, flySeven, -700px, -80px, 14, 7.67);
}

.eight {
  right: 0;
  top: 25%;
  @include animateSparkles(1.6s, 29, 32, flyEight, -700px, 150px, 13.5, 3.74);
}

@keyframes moveLeg {
  0% {
    transform: rotate(20deg);
  }
  50% {
    transform: rotate(-20deg);
  }
  80% {
    transform: rotate(0deg) translateY(-1px);
  }
  100% {
    transform: rotate(20deg);
  }
}

@keyframes moveHindLeg {
  0% {
    transform: rotate(25deg);
  }
  50% {
    transform: rotate(-25deg);
  }
  80% {
    transform: rotate(0deg) translateY(-1px);
  }
  100% {
    transform: rotate(25deg);
  }
}

@keyframes bodyBounce {
  50% {
    transform: rotate(2deg) translateX(-1px);
  }
}

@keyframes headMove {
  50% {
    transform: rotate(-2deg) translateX(-1px);
  }
}

@keyframes earMove {
  50% {
    transform: rotate(265deg) translateX(-1px) translateY(-1px);
  }
}

@keyframes bulbMove {
  50% {
    transform: rotate(16deg) translateY(0.5px);
  }
}

@keyframes bulbaWalk {
  100% {
    transform: translateX(-66.66666%);
  }
}

              
            
!

JS

              
                // Reference image: https://imgur.com/ElYbcFE
// Walk cycle reference: https://twitter.com/BulbaGanda/status/1222254884315172865?s=20
// Speed Coding Video: https://youtu.be/WKuM7kIAhNU

              
            
!
999px

Console