cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <body>
  <div class="box">
    <div class="veil">
      <div class="rip-one"></div>
      <div class="rip-two"></div>
      <div class="rip-three"></div>
      <div class="rip-four"></div>
    </div>
    <div class="hair-back"></div>
    <div class="headband"></div>
    <div class="headband-flowers">
      <div class="flowers-one"></div>
      <div class="flowers-two"></div>
      <div class="flowers-three"></div>
      <div class="flowers-five"></div>
      <div class="flowers-six"></div>
      <div class="flowers-seven"></div>
    </div>
    <div class="head">
      <div class="neck"></div>
      <div class="face">
        <div class="brow-left"></div>
        <div class="brow-right"></div>
        <div class="eye-left"></div>
        <div class="eye-right"></div>
        <div class="nose"></div>
        <div class="mouth"></div>
      </div>
    </div>
    <div class="hair-front"></div>
    <div class="bride-body">
      <div class="arm-left">
        <div class="forarm"></div>
      </div>
      <div class="arm-right">
        <div class="forarm"></div>
      </div>
    </div>
    <div class="dress">
      <div class="strap-left"></div>
      <div class="strap-right"></div>
      <div class="bust-left"></div>
      <div class="bust-right"></div>
      <div class="pleats">
        <div class="one"></div>
        <div class="two"></div>
        <div class="three"></div>
      </div>
    </div>
    <div class="foot-left"></div>
    <div class="foot-right"></div>
    <div class="bouquet"></div>
    <div class="bouquet-flowers">
      <div class="flower-one"></div>
      <div class="flower-two"></div>
      <div class="flower-three"></div>
      <div class="flower-four"></div>
      <div class="flower-five"></div>
      <div class="flower-six"></div>
    </div>
  </div>
</body>
            
          
!
            
              $green: #7DCEA0;
$dark-green: darken($green, 40%);
$white: #FFF;
$dark-gray: #212F3D;
$light-gray: #EAEDED;
$red: #C0392B;
$yellow: #F1C40F;
@mixin rotate($deg) {
  -webkit-transform: rotate($deg);
  -moz-transform: rotate($deg);
  -ms-transform: rotate($deg);
  -o-transform: rotate($deg);
  transform: rotate($deg);
}

@mixin curve {
  border-top-left-radius: 60%;
  border-top-right-radius: 60%;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
}

@mixin pleat-curve {
  border-radius: 40% 10% 50% 50%;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
}

body {
  background: $dark-gray;
}

.box {
  position: relative;
  height: 550px;
  width: 400px;
  margin: 50px auto;
}

.veil {
  position: absolute;
  top: 5%;
  left: 27%;
  height: 60%;
  width: 45%;
  background-color: $light-gray;
  border-radius: 100px 100px 5px 5px;
  .rip-one {
    position: absolute;
    top: 20%;
    left: 5%;
    height: 10%;
    width: 5%;
    border-radius: 50%;
    background: $dark-gray;
    @include rotate(-10deg);
  }
  .rip-two {
    position: absolute;
    top: 60%;
    left: 98%;
    height: 10%;
    width: 5%;
    border-radius: 50% 20%;
    background: $dark-gray;
    @include rotate(-8deg);
  }
  .rip-three {
    position: absolute;
    top: 90%;
    left: -10%;
    height: 15%;
    width: 20%;
    border-radius: 50%;
    background: $dark-gray;
  }
  .rip-four {
    @extend .rip-three;
    top: 20%;
    left: 95%;
    @include rotate(30deg);
  }
}

.headband {
  position: absolute;
  top: 4.5%;
  left: 34.5%;
  height: 15%;
  width: 31%;
  border: 25px solid darken($light-gray, 10%);
  @include curve;
  z-index: 2;
}

.headband-flowers > * {
  position: absolute;
  height: 7%;
  width: 10%;
  border-radius: 50%;
  &:before,
  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 200px 20px 200px 20px;
  }
  &:before {
    @include rotate (-15deg);
  }
  &:after {
    @include rotate(90deg);
  }
}

.headband-flowers {
  .flowers-one,
  .flowers-seven {
    &:after {
      background: lighten($dark-gray, 10%);
    }
    &:before {
      background: lighten($dark-gray, 15%);
    }
  }
  .flowers-two,
  .flowers-six {
    &:after {
      background: lighten($dark-gray, 20%);
    }
    &:before {
      background: lighten($dark-gray, 25%);
    }
  }
  .flowers-three,
  .flowers-five {
    &:after {
      background: lighten($dark-gray, 30%);
    }
    &:before {
      background: lighten($dark-gray, 35%);
    }
  }
  .flowers-one {
    top: 7%;
    left: 30%;
    @include rotate(-60deg);
  }
  .flowers-two {
    top: 3%;
    left: 35%;
    @include rotate(-30deg);
  }
  .flowers-three {
    top: 2%;
    left: 42%;
    @include rotate(-10deg);
  }
  .flowers-five {
    top: 2%;
    right: 42%;
    @include rotate(10deg);
    &:after {
      background: lighten($dark-gray, 40%);
    }
  }
  .flowers-six {
    top: 3%;
    right: 35%;
    @include rotate(30deg);
  }
  .flowers-seven {
    top: 7%;
    right: 30%;
    @include rotate(60deg);
  }
}

.hair-back {
  position: absolute;
  top: 5%;
  left: 31.5%;
  height: 50%;
  width: 37%;
  border-radius: 90px 90px 10px 10px;
  background: darken($red, 10%);
}

.hair-front {
  position: absolute;
  top: 3%;
  left: 36%;
  height: 20%;
  width: 10%;
  border-radius: 50%;
  background: darken($red, 10%);
  @include rotate(40deg);
  &:before {
    position: absolute;
    content: "";
    top: -42%;
    left: 120%;
    height: 100%;
    width: 120%;
    border-radius: 50%;
    background: darken($red, 10%);
    @include rotate(100deg);
  }
}

.head {
  position: absolute;
  top: 5%;
  left: 35%;
  height: 30%;
  width: 30%;
  border-radius: 50%;
  background: $green;
  .neck {
    position: absolute;
    top: 90%;
    left: 38%;
    height: 60%;
    width: 25%;
    background: $green;
  }
  .face {
    .brow-left,
    .brow-right {
      position: absolute;
      top: 50%;
      height: 10%;
      width: 25%;
      border: 5px solid $dark-green;
      @include curve;
      z-index: 2;
    }
    .brow-right {
      right: 15%;
      @include rotate(-10deg);
    }
    .brow-left {
      left: 15%;
      @include rotate(10deg);
    }
    .eye-left,
    .eye-right {
      position: absolute;
      top: 56%;
      height: 15%;
      width: 30%;
      background: darken($green, 25%);
      z-index: 2;
      &:before {
        position: absolute;
        content: "";
        top: 35%;
        height: 50%;
        width: 40%;
        border-radius: 50%;
        background: $yellow;
      }
      &:after {
        position: absolute;
        content: "";
        top: 45%;
        height: 30%;
        width: 20%;
        border-radius: 50%;
        background: $dark-gray;
      }
    }
    .eye-left {
      left: 10%;
      border-radius: 50px 50px 20px 50px;
      @include rotate(5deg);
      &:before {
        left: 45%;
      }
      &:after {
        left: 60%;
      }
    }
    .eye-right {
      right: 10%;
      border-radius: 50px 50px 50px 20px;
      @include rotate(-5deg);
      &:before {
        right: 45%;
      }
      &:after {
        right: 60%;
      }
    }
    .nose {
      position: absolute;
      top: 70%;
      height: 30%;
      width: 20%;
      &:before,
      &:after {
        position: absolute;
        content: "";
        height: 25%;
        width: 20%;
        background: lighten($dark-green, 5%);
      }
      &:before {
        left: 231%;
        border-radius: 20px 0 5px 10px;
        @include rotate(5deg);
      }
      &:after {
        right: -169%;
        border-radius: 0 20px 10px 5px;
        @include rotate(-5deg);
      }
    }
    .mouth {
      position: absolute;
      height: 5%;
      width: 20%;
      top: 88%;
      left: 40%;
      border-radius: 0 0 50% 50%;
      background: $red;
      &:before,
      &:after {
        position: absolute;
        content: "";
        top: -50%;
        height: 100%;
        width: 70%;
        border-radius: 50%;
        background: $red;
      }
      &:before {
        left: -10%;
      }
      &:after {
        right: -10%;
      }
    }
  }
}

.bride-body {
  position: absolute;
  top: 40%;
  left: 37.5%;
  height: 100px;
  width: 100px;
  background: $green;
  border-radius: 10px 10px 50% 50%;
  .arm-left,
  .arm-right {
    position: absolute;
    top: 35%;
    height: 30%;
    width: 100%;
    border-radius: 40%;
    background: $green;
    z-index: 6;
    .forarm {
      position: absolute;
      height: 100%;
      width: 80%;
      border-radius: 40%;
      background: $green;
    }
  }
  .arm-left {
    left: -60%;
    @include rotate (100deg);
    .forarm {
      top: -95%;
      left: 55%;
      @include rotate (100deg);
    }
  }
  .arm-right {
    right: -60%;
    @include rotate (-100deg);
    .forarm {
      top: -95%;
      right: 55%;
      @include rotate (-100deg);
    }
  }
}

.dress {
  position: absolute;
  top: 55%;
  left: 25%;
  height: 50%;
  width: 50%;
  border-radius: 40% 40% 10px 10px;
  background: $white;
  z-index: 5;
  .strap-left,
  .strap-right {
    position: absolute;
    height: 20%;
    width: 7%;
    top: -31%;
    border-radius: 5px;
    background: $white;
  }
  .strap-left {
    left: 25%;
    @include rotate(-10deg);
  }
  .strap-right {
    right: 25%;
    @include rotate(10deg);
  }
  .bust-left,
  .bust-right {
    position: absolute;
    height: 30%;
    width: 25%;
    top: -20%;
    border-radius: 50%;
    background: $white;
    z-index: 4;
  }
  .bust-left {
    left: 27%;
    @include rotate(-20deg);
  }
  .bust-right {
    right: 27%;
    @include rotate(20deg);
  }
  .pleats {
    .one,
    .two,
    .three {
      position: absolute;
      top: 6%;
      border-radius: 40% 40% 10px 10px;
      z-index: 4;
    }
    .one {
      height: 80%;
      width: 80%;
      left: 10%;
      background: darken($white, 5%);
    }
    .two {
      height: 85%;
      width: 60%;
      left: 20%;
      background: darken($white, 10%);
    }
    .three {
      height: 90%;
      width: 40%;
      left: 30%;
      background: $white;
    }
  }
}

.foot-left,
.foot-right {
  position: absolute;
  top: 104%;
  height: 3%;
  width: 10%;
  border-radius: 50%;
  background: lighten($dark-gray, 20%);
  z-index: 1;
}

.foot-left {
  left: 35%;
  @include rotate(-20deg);
}

.foot-right {
  right: 35%;
  @include rotate(20deg);
}

.bouquet-flowers > * {
  position: absolute;
  height: 7%;
  width: 10%;
  top: 50%;
  border-radius: 50%;
  z-index: 10;
  &:before,
  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 200px 20px 200px 20px;
  }
  &:before {
    @include rotate (-15deg);
  }
  &:after {
    @include rotate(90deg);
  }
  .flower-one {
    left: 100%;
  }
}

.bouquet {
  position: absolute;
  top: 53%;
  left: 43%;
  height: 10%;
  width: 15%;
  border-radius: 50%;
  background: $dark-gray;
  z-index: 7;
}

.bouquet-flowers > * {
  position: absolute;
  height: 7%;
  width: 10%;
  background: lighten($dark-gray, 20%);
  border-radius: 200px 20px 200px 20px;
  &:before,
  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 200px 20px 200px 20px;
  }
  &:before {
    @include rotate (40deg);
    background: lighten($dark-gray, 10%);
  }
  &:after {
    @include rotate(100deg);
    background: lighten($dark-gray, 15%);
  }
}

.bouquet-flowers {
  .flower-one {
    left: 40%;
    @include rotate(100deg);
  }
    .flower-two {
    left: 50%;
    @include rotate(40deg);
  }
    .flower-three {
    top: 55%;
    left: 50%;
    @include rotate(120deg);
  }
    .flower-four {
    top: 55%;
    left: 40%;
    @include rotate(60deg);
  }
    .flower-five {
    top: 56%;
    left: 45%;
    @include rotate(60deg);
  } 
  .flower-six {
    top: 50%;
    left: 45%;
    @include rotate(60deg);  
  }
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console