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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <div class="canvas">
  <div class="taco">
    <div class="shadow"></div>
    <div class="back"></div>
    <div class="lettuce one"></div>
    <div class="fry two"></div>
    <div class="meat one"></div>
    <div class="meat two"></div>
    <div class="meat three"></div>
    <div class="meat four"></div>
    <div class="meat five"></div>
    <div class="meat six"></div>
    <div class="tomato one">
      <div></div>
    </div>
    <div class="tomato two">
      <div></div>
    </div>
    <div class="fry one"></div>
    <div class="fry three"></div>
    <div class="lettuce two"></div>
    <div class="front">
      <div class="marks one"></div>
      <div class="marks two"></div>
      <div class="marks three"></div>
      <div class="marks four"></div>
    </div>
  </div>
  <div class="sombrero">
    <div class="back"></div>
    <div class="front"></div>
    <div class="hello">OH-LA!</div>
  </div>
</div>
            
          
!

CSS

            
              body {
  margin: 0;
  padding: 0;
  background-color: #fcf1a2;
}

.canvas {
  width: 100vh;
  height: 100vh;
  max-width: 280px;
  max-height: 280px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.taco {
  position: absolute;
  top: 24%;
  left: 0;
  width: 100%;
  height: 52%;
  .shadow {
    position: absolute;
    bottom: -9%;
    left: -3%;
    width: 104%;
    height: 20%;
    background-color: #dfd274;
    border-radius: 50%;
  }
  .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 88%;
    height: 100%;
    background: linear-gradient(#e8a938 85%, #efba4a 85%);
    border-radius: 50% 50% 5% 5% / 90% 90% 10% 10%;
  }
  .lettuce {
    position: absolute;
    top: 15%;
    left: 15%;
    background-color: #739131;
    width: 30%;
    height: 55%;
    position: relative;
    text-align: center;
    -webkit-transform: rotate(20deg);
    -moz-transform: rotate(20deg);
    -ms-transform: rotate(20deg);
    -o-transform: rotate(20eg);
    &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background-color: #739131;
      -webkit-transform: rotate(135deg);
      -moz-transform: rotate(135deg);
      -ms-transform: rotate(135deg);
      -o-transform: rotate(135deg);
    }
  }
  .meat {
    &.one {
      position: absolute;
      bottom: 0;
      left: -2%;
      width: 15%;
      height: 20%;
      background-color: #9a5512;
      border-radius: 45% 0 45% 45% / 55% 0 90% 45%;
    }
    &.two {
      position: absolute;
      bottom: 10%;
      left: 3%;
      width: 12%;
      height: 22%;
      background-color: #9a5512;
      border-radius: 50%;
    }
    &.three {
      position: absolute;
      bottom: 25%;
      left: 7%;
      width: 8%;
      height: 15%;
      background-color: #9a5512;
      border-radius: 50%;
    }
    &.four {
      position: absolute;
      bottom: 30%;
      left: 10%;
      width: 20%;
      height: 35%;
      background-color: #9a5512;
      border-radius: 50%;
    }
    &.five {
      position: absolute;
      bottom: 32%;
      left: 12%;
      width: 15%;
      height: 25%;
      background-color: #f23b33;
      border-radius: 50%;
    }
    &.six {
      position: absolute;
      top: 5%;
      left: 28%;
      width: 20%;
      height: 35%;
      background-color: #f23b33;
      border-radius: 50%;
    }
  }
  .tomato {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 58%;
    background: radial-gradient(ellipse farthest-corner at center, #df7754 47%, #f68773 47%, #f68773 64%, #df7754 64%);
    border-radius: 50%;
    div {
      position: absolute;
      top: 28%;
      left: 46%;
      width: 10%;
      height: 18%;
      background-color: #f68773;
      border-radius: 50% 50% 50% 50% / 10% 10% 90% 90%;
      &:before {
        content: '';
        position: absolute;
        top: 25%;
        left: 140%;
        width: 90%;
        height: 90%;
        background-color: #f68773;
        border-radius: 50% 50% 50% 50% / 10% 10% 90% 90%;
        transform: rotate(35deg);
      }
      &:after {
        content: '';
        position: absolute;
        top: 30%;
        left: -140%;
        width: 90%;
        height: 90%;
        background-color: #f68773;
        border-radius: 50% 50% 50% 50% / 10% 10% 90% 90%;
        transform: rotate(-35deg);
      }
    }
    &.one {
      top: 5%;
      left: 8%;
      transform: rotate(-45deg) scale(0.6);
    }
    &.two {
      top: -6%;
      left: 41%;
    }
  }
  .fry {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 30%;
    border: 5px solid transparent;
    border-radius: 50%;
    &.one {
      bottom: -5%;
      left: 5%;
      border-top-color: #fbd32f;
    }
    &.two {
      bottom: 40%;
      left: 5%;
      border-bottom-color: #fbd32f;
      transform: rotate(20deg);
    }
    &.three {
      bottom: 72%;
      left: 38%;
      height: 50%;
      border-left-color: #fbd32f;
      transform: rotate(-30deg);
    }
  }
  .lettuce.two {
    top: -53%;
    left: 38%;
    transform: rotate(100deg);
  }
  .front {
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    height: 100%;
    background: linear-gradient(#f8bf4c 85%, #efba4a 85%);
    border-radius: 50% 50% 5% 5% / 90% 90% 10% 10%;
    .marks {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 3%;
      height: 15%;
      background-color: #e8a938;
      border-radius: 30%;
      &:before {
        content: '';
        position: absolute;
        top: 0;
        left: -200%;
        width: 50%;
        height: 20%;
        background-color: #e8a938;
        border-radius: 50%;
      }
      &:after {
        content: '';
        position: absolute;
        top: -20%;
        left: 300%;
        width: 70%;
        height: 20%;
        background-color: #e8a938;
        border-radius: 50%;
      }
      &.one {
        bottom: 30%;
        left: 15%;
        transform: rotate(40deg);
      }
      &.two {
        bottom: 65%;
        left: 49%;
        transform: rotate(-40deg);
      }
      &.three {
        bottom: 35%;
        left: 78%;
        transform: rotate(-15deg);
      }
      &.four {
        bottom: 25%;
        left: 45%;
        height: 10%;
        transform: rotate(15deg);
      }
    }
  }
}

.sombrero {
  position: absolute;
  top: -110vh;
  right: 0;
  width: 40%;
  height: 30%;
  transform: rotate(25deg);
  animation: fall 7s ease-in infinite;
  .back {
    position: absolute;
    top: 0;
    left: 30%;
    width: 40%;
    height: 90%;
    background: linear-gradient(#f8ad2d 40%, #cd4132 40%, #cd4132 45%, #536e2e 45%, #536e2e 50%, #f8ad2d 50%);
    border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  }
  .front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(#e79d2d 15%, #f8ad2d 15%, #f8ad2d 25%, #cd4132 25%, #cd4132 33%, #f8ad2d 33%, #f8ad2d 90%, #e79d2d 90%);
    border-radius: 10% 10% 20% 20% / 10% 10% 90% 90%;
  }
  .hello {
    position: absolute;
    top: 5%;
    right: -17%;
    color: #f23b33;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    font-size: .85em;
  }
}

@keyframes fall {
  0%,
  35% {
    top: -110vh;
  }

  40%,
  46%,
  100% {
    top: 2%;
  }

  43% {
    top: -1%;
  }
}
            
          
!

JS

            
              
            
          
!
999px

Console