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="container">
  <div class="pole-cord">
    <div class="father-carp-string">
      <div class="string"></div>
    </div>
    <div class="mother-carp-string">
      <div class="string"></div>
    </div>
    <div class="child-carp-string">
      <div class="string"></div>
    </div>
  </div>
  <div class="pole"></div>
  <div class="arrow-wheel"></div>

  <div class="father-carp">
    <div class="tail"></div>
    <div class="body"></div>
    <div class="mouth"></div>
    <div class="gill"></div>
    <div class="scales"></div>
    <div class="eye"></div>
  </div>
  <div class="mother-carp">
    <div class="tail"></div>
    <div class="body"></div>
    <div class="mouth"></div>
    <div class="gill"></div>
    <div class="scales"></div>
    <div class="eye"></div>
  </div>
  <div class="child-carp">
    <div class="tail"></div>
    <div class="body"></div>
    <div class="mouth"></div>
    <div class="gill"></div>
    <div class="scales"></div>
    <div class="eye"></div>
  </div>
</div>
              
            
!

CSS

              
                /* Arrow Wheel */
.arrow-wheel {
  position: absolute;
  width: 69px;
  height: 69px;
  left: 63px;
  top: 11px;
  background: radial-gradient(#fdecaa 40%, #fcd100 41%);
  border-radius: 50%;
}

/* Pole */
.pole {
  position: absolute;
  width: 12.5px;
  height: 418px;
  left: 91px;
  top: 79px;
  background: linear-gradient(to right, #d7a876, #e0c5a7 40% 60%, #d7a876);
  border-radius: 0px 0px 5px 5px;
}

/* Cord and Strings */
.pole-cord {
  position: absolute;
  width: 53px;
  height: 335px;
  left: 57px;
  top: 66px;
  border: 5px solid transparent;
  border-right: 5px solid #e9e9e9;
  border-radius: 50%;
}

/* Light Gray Triangle */
.string {
  position: absolute;
  width: 56px;
  height: 74px;
  background: conic-gradient(
    from 0deg at 0% 50%,
    transparent 60deg,
    #eaeaea 60deg 122deg,
    transparent 122deg
  );
}

/* White Triangle */
.string::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 70px;
  left: 6px;
  top: 2px;
  background: conic-gradient(
    from 0deg at 0% 50%,
    transparent 60deg,
    #feffff 60deg 122deg,
    transparent 122deg
  );
}

.father-carp-string {
  position: absolute;
  left: 48px;
  top: 30px;
}

/* Carp Parts */
.mouth {
  position: absolute;
  width: 27px;
  height: 91px;
  left: 160px;
  top: 93px;
  background: radial-gradient(#e1e1e1, #e8e8e8);
  border-right: 2px solid #fefefe;
  border-radius: 50%;
}

.body {
  position: absolute;
  width: 230px;
  height: 91px;
  left: 174px;
  top: 93px;
  background: #232862;
}

.body::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 91px;
  left: 68px;
  top: 0px;
  background: #181939;
  border-radius: 0px 14px 14px 0px / 0px 48px 48px 0px;
}

.tail {
  position: absolute;
  width: 0;
  height: 0;
  left: 402px;
  top: 93px;
  border-top: 62px solid #1d2777;
  border-right: 35px solid transparent;
}

.tail::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  left: 0;
  top: -33px;
  border-bottom: 62px solid #232862;
  border-right: 35px solid transparent;
}

.eye {
  position: absolute;
  width: 29px;
  height: 29px;
  left: 210px;
  top: 102px;
  background: white;
  border-radius: 50%;
}

.eye::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 4px;
  background: radial-gradient(50% 60% at 30% 40%, #3c4698, #27285c 60%);
  border-radius: 50%;
}

.gill {
  position: absolute;
  width: 29px;
  height: 29px;
  left: 225px;
  top: 138px;
  background: #181939;
  border-radius: 50%;
}

.gill::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 19px;
  left: 10px;
  top: 27px;
  background: #181939;
  border-radius: 50%;
}

.gill::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 62px;
  left: -27px;
  top: -45px;
  background: #181939;
  border-radius: 3px 0px 0px 50px / 10px 0px 0px 50px;
}

.scales {
  position: absolute;
  width: 150px;
  height: 90px;
  left: 241px;
  top: 93.5px;
  background: radial-gradient(
    100% 53% at 0 50%,
    transparent 90%,
    white 91% 95%,
    transparent 96%
  );
  background-size: 30px 30px;
}

/* Mother Carp */
.mother-carp-string {
  position: absolute;
  left: 53px;
  top: 137px;
}

.mother-carp {
  position: absolute;
  left: 170px;
  top: 204px;
  transform: scale(0.94);
}

.mother-carp .mouth {
  position: absolute;
  left: -13px;
  top: 0px;
}

.mother-carp .body {
  position: absolute;
  left: 0px;
  top: 0px;
  background: #ef8e94;
}

.mother-carp .body::before {
  background: #d6160d;
}

.mother-carp .tail {
  position: absolute;
  left: 229px;
  top: 0px;
  border-top: 62px solid #ef999e;
}

.mother-carp .tail::before {
  border-bottom: 62px solid #ef8e94;
}

.mother-carp .eye {
  position: absolute;
  left: 38px;
  top: 9px;
}

.mother-carp .gill {
  position: absolute;
  left: 53px;
  top: 45px;
  background: #d6160d;
}

.mother-carp .gill::before {
  background: #d6160d;
}

.mother-carp .gill::after {
  background: #d6160d;
}

.mother-carp .scales {
  position: absolute;
  left: 70px;
  top: 0px;
}

/* Child Carp */
.child-carp-string {
  position: absolute;
  left: 47px;
  top: 239px;
}

.child-carp {
  position: absolute;
  left: 21px;
  top: 228px;
  transform: scale(0.86);
}

.child-carp .mouth {
  position: absolute;
  top: 93px;
  left: 160px;
}

.child-carp .body {
  background: #3f42f1;
}

.child-carp .body::before {
  background: #011aab;
}

.child-carp .tail {
  position: absolute;
  left: 403px;
  top: 93px;
  border-top: 62px solid #4447f4;
}

.child-carp .tail::before {
  border-bottom: 62px solid #3f42f1;
}

.child-carp .eye {
  position: absolute;
  left: 210px;
  top: 102px;
}

.child-carp .gill {
  position: absolute;
  left: 226px;
  top: 138px;
  background: #011aab;
}

.child-carp .gill::before {
  background: #011aab;
}

.child-carp .gill::after {
  background: #011aab;
}

.child-carp .scales {
  position: absolute;
  left: 241px;
  top: 94px;
}

/* Body and Container Settings */
/* Center shapes */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Set background and border color */
.container {
  min-width: 500px;
  height: 500px;
  border: 5px solid lightgray;
  background: transparent;
  position: relative;
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
              
            
!

JS

              
                
              
            
!
999px

Console