cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              <div class="cloud-background-wrap">
  <div class="cloud-list">
    <div class="cloud cloud-1"></div>
  </div>
  <div class="cloud-list">
    <div class="cloud cloud-2"></div>
  </div>
  <div class="cloud-list">
    <div class="cloud cloud-3"></div>
  </div>
</div>  
<div class="title">
  <span>Happy</span>
  <span>Dashain</span>
</div>
<div class="bus-container">
  <div class="bus-wrap">
    <div class="side-mirror-wrap">
      <div class="side-mirror left">
        <div class="rode-1"></div>
        <div class="rode-2"></div>
      </div>
      <div class="side-mirror right">
        <div class="rode-1"></div>
        <div class="rode-2"></div>
      </div>
    </div>
    <div class="mirror">
      <div class="people-wrap">
        <div class="people"></div>
        <div class="people"></div>
        <div class="people"></div>
        <div class="people"></div>
        <div class="people"></div>
        <div class="people"></div>
        <div class="people"></div>
        <div class="people"></div>
      </div>
      <div class="steering"></div>
    </div>
    <hr />
    <div class="side-light-wrap">
      <div class="side-light left"></div>
      <div class="side-light right"></div>
    </div>
    <div class="text-wrap">
      <p>Dashain Express</p>
      <div class="head-light-wrap clearfix">
        <div class="head-light left"></div>
        <div class="line-wrap">
          <div class="line-item">
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
          </div>
          <div class="line-item">
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
          </div>
          <div class="line-item">
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
          </div>
          <div class="line-item">
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
          </div>
          <div class="line-item">
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
            <div class="line-item-list"></div>
          </div>
        </div>
        <div class="head-light right"></div>
      </div>
      <div class="number-plate">
        <span>NA 1A 2345</span>
      </div>
    </div>
    <div class="tyre-wrap">
      <div class="tyre left"></div>
      <div class="tyre right"></div>
    </div>
  </div>
  <div class="other-bus-wrap">
    <div class="bus-wrap purple">
      <div class="side-mirror-wrap">
        <div class="side-mirror left">
          <div class="rode-1"></div>
          <div class="rode-2"></div>
        </div>
        <div class="side-mirror right">
          <div class="rode-1"></div>
          <div class="rode-2"></div>
        </div>
      </div>
      <div class="mirror">
        <div class="people-wrap">
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
        </div>
        <div class="steering"></div>
      </div>
      <hr />
      <div class="side-light-wrap">
        <div class="side-light left"></div>
        <div class="side-light right"></div>
      </div>
      <div class="text-wrap">
        <p>Dashain Express</p>
        <div class="head-light-wrap clearfix">
          <div class="head-light left"></div>
          <div class="line-wrap">
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
          </div>
          <div class="head-light right"></div>
        </div>
        <div class="number-plate">
          <span>NA 1A 2345</span>
        </div>
      </div>
      <div class="tyre-wrap">
        <div class="tyre left"></div>
        <div class="tyre right"></div>
      </div>
    </div>
    <div class="bus-wrap green">
      <div class="side-mirror-wrap">
        <div class="side-mirror left">
          <div class="rode-1"></div>
          <div class="rode-2"></div>
        </div>
        <div class="side-mirror right">
          <div class="rode-1"></div>
          <div class="rode-2"></div>
        </div>
      </div>
      <div class="mirror">
        <div class="people-wrap">
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
          <div class="people"></div>
        </div>
        <div class="steering"></div>
      </div>
      <hr />
      <div class="side-light-wrap">
        <div class="side-light left"></div>
        <div class="side-light right"></div>
      </div>
      <div class="text-wrap">
        <p>Dashain Express</p>
        <div class="head-light-wrap clearfix">
          <div class="head-light left"></div>
          <div class="line-wrap">
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
            <div class="line-item">
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
              <div class="line-item-list"></div>
            </div>
          </div>
          <div class="head-light right"></div>
        </div>
        <div class="number-plate">
          <span>NA 1A 2345</span>
        </div>
      </div>
      <div class="tyre-wrap">
        <div class="tyre left"></div>
        <div class="tyre right"></div>
      </div>
    </div>
  </div>
</div>
            
          
!
            
              @import 'https://fonts.googleapis.com/css?family=Poiret+One';
html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #f57d7d;
  font-family: 'Poiret One', cursive;
}

.title {
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  font-size: 30px;
  padding-top: 40px;
  max-width: 210px;
  margin: 0 auto;
  > span {
    display: inline-block;
    font-weight: bold;
    text-shadow: 11px 0px 8px rgba(246, 246, 246, 0.7);
    &:first-child {
      transform: rotate(-10deg);
    }
    &:last-child {
      transform: rotate(5deg);
      margin-top: 5px;
    }
  }
}

.bus-container {
  padding: 100px 0 0;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.bus-wrap {
  width: 340px;
  height: 310px;
  background: #6fe6ff;
  display: inline-block;
  border-radius: 20px;
  position: relative;
  transform: rotate(-2deg);
  z-index: 1;
  &:before {
    content: '';
    position: absolute;
    width: 340px;
    height: 145px;
    display: block;
    background: #6fe6ff;
    border-radius: 50%;
    left: 0;
    top: -50px;
  }
}

.side-mirror-wrap {
  position: absolute;
  width: 100%;
  top: 100px;
  z-index: 5;
}

.side-mirror {
  width: 27px;
  height: 43px;
  position: absolute;
  background: #495456;
  top: -100px;
  border-radius: 5px;
  display: inline-block;
  &:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #495456;
    display: block;
    top: -8px;
    display: inline-block;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 3px;
  }
  &.left {
    left: -28px;
  }
  &.right {
    right: -28px;
    transform: rotateY(-180deg);
    &:after {
      content: '';
      width: 23px;
      height: 50px;
      position: absolute;
      background: rgba(136, 136, 136, 0.16);
      border-radius: 30px 30px 10px 10px;
      left: 30px;
    }
  }
}

.rode-1 {
  width: 30px;
  height: 30px;
  border: 4px solid #495456;
  position: absolute;
  top: -29px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0;
  /* border-width: inherit; */
  border-radius: 10px 0 0 0;
  transform: rotate(27deg);
  left: 14px;
}

.rode-2 {
  width: 20px;
  height: 18px;
  border: 4px solid #495456;
  position: absolute;
  top: -18px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0;
  border-radius: 10px 0 0 0;
  transform: rotate(29deg);
  left: 15px;
}

.mirror {
  width: 310px;
  height: 127px;
  border: 6px solid #62c9de;
  display: inline-block;
  position: relative;
  border-top-right-radius: 50%;
  border-top-left-radius: 50%;
  margin-top: -42px;
  background: #d6f7ff;
  overflow: hidden;
  box-shadow: inset 0 25px 20px 3px #f6f8f9;
  &:after {
    width: 200px;
    height: 400px;
    content: '';
    background: rgba(95, 95, 95, 0.07);
    position: absolute;
    display: inline-block;
    z-index: 10;
    transform: rotate(70deg);
    left: 93px;
    top: -40px;
  }
}

.people {
  height: 50px;
  width: 100px;
  border-radius: 90px 90px 0 0;
  -moz-border-radius: 90px 90px 0 0;
  -webkit-border-radius: 90px 90px 0 0;
  background: #c9e8f0;
  display: inline-block;
  position: absolute;
  top: 69%;
  &:before {
    content: '';
    width: 30px;
    height: 40px;
    background: #c9e8f0;
    display: inline-block;
    border-radius: 50%;
    top: -30px;
    position: relative;
  }
  &:nth-child(1) {
    background: #bcd9e0;
    left: 0;
    &:before {
      background: #bcd9e0;
    }
  }
  &:nth-child(2) {
    left: 25px;
    z-index: 2;
  }
  &:nth-child(3) {
    left: 65px;
    top: 63%;
    background: #b4cfd6;
    &:before {
      background: #b4cfd6;
    }
  }
  &:nth-child(4) {
    left: 115px;
    background: #bcd9e0;
    z-index: 1;
    &:before {
      background: #bcd9e0;
    }
  }
  &:nth-child(5) {
    right: 60px;
    top: 60%;
    background: #c2e2ea;
    &:before {
      background: #c2e2ea;
    }
  }
  &:nth-child(6) {
    right: 40px;
    background: #c9e9f1;
    z-index: 3;
    &:before {
      background: #c9e9f1;
    }
  }
  &:nth-child(7) {
    right: 10px;
    background: #b6d2d8;
    &:before {
      background: #b6d2d8;
    }
  }
  &:nth-child(8) {
    right: -10px;
    background: #bedbe3;
    z-index: 4;
    &:before {
      background: #bedbe3;
    }
  }
}

.steering {
  width: 70px;
  height: 23px;
  border: 5px solid #b6d2d8;
  position: absolute;
  top: 77%;
  z-index: 4;
  border-radius: 50%;
  overflow: hidden;
  left: 33px;
  transform: rotate(-8deg);
  &:before,
  &:after {
    content: '';
    position: absolute;
    border: 4px solid #b6d2d8;
    border-radius: 4px;
  }
  &:before {
    width: 50px;
    height: 50px;
    top: 12px;
    transform: rotate(0deg);
    left: 31px;
  }
  &:after {
    width: 49px;
    height: 29px;
    top: 3px;
    left: -24px;
    transform: rotate(19deg);
  }
}

hr {
  height: 10px;
  background: #69d9f0;
  border: none;
  margin: 3px 0 0;
}

.side-light {
  width: 25px;
  height: 15px;
  background: #ffbf7b;
  display: inline-block;
  margin-top: 5px;
  border-radius: 4px;
  &.left {
    float: left;
    box-shadow: 2px 2px 0 0px #77afaf;
    margin-left: -5px;
  }
  &.right {
    float: right;
    box-shadow: -2px 2px 0 0px #77afaf;
    margin-right: -5px;
  }
}

.text-wrap {
  text-align: center;
  position: relative;
  p {
    text-transform: uppercase;
    color: #6a9faa;
    display: inline-block;
    background: #8bebff;
    padding: 1px 2px;
    margin: 10px 0;
    font-size: 14px;
  }
  &:after {
    content: '';
    background: #81a9b3;
    height: 44px;
    display: block;
    margin-top: -5px;
    border-bottom-left-radius: 21px;
    border-bottom-right-radius: 21px;
    box-shadow: inset 0px 35px 0 1px #aee6f2;
  }
}

.head-light-wrap {
  margin-top: 20px;
  padding-bottom: 34px;
  overflow: hidden;
  position: relative;
  &:after {
    content: '';
    background: #d6f8ff;
    height: 20px;
    display: block;
    position: relative;
    top: 75px;
    z-index: 1;
    border-top: 5px solid #85c4d2;
  }
}

.head-light {
  width: 33px;
  height: 20px;
  background: #ffefe3;
  display: inline-block;
  border: 4px solid #799297;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  &:before {
    content: '';
    position: absolute;
    background: #ffcda7;
    width: 50px;
    height: 50px;
  }
  &.left {
    float: left;
    margin-left: 15px;
    &:before {
      transform: rotate(60deg);
      left: 3px;
      top: 7px;
    }
  }
  &.right {
    float: right;
    margin-right: 15px;
    &:before {
      transform: rotate(60deg);
      left: 3px;
      top: 7px;
    }
  }
}

.line-wrap {
  float: left;
  width: 228px;
}

.line-item {
  display: inline-block;
  margin-right: 8px;
  vertical-align: top;
  &:last-child {
    margin-right: 0;
  }
  &:first-child,
  &:last-child {
    width: 22px;
  }
  &:nth-child(2),
  &:nth-child(4) {
    width: 32px;
  }
  &:nth-child(3) {
    width: 40px;
  }
}

.line-item-list {
  height: 4px;
  background: #64cee3;
  border-radius: 20%;
  margin-bottom: 2px;
  &:nth-child(3),
  &:nth-child(6) {
    margin-bottom: 8px;
  }
}

.number-plate {
  height: 25px;
  background: #495456;
  color: #788a8d;
  max-width: 75px;
  margin: auto;
  font-size: 12px;
  line-height: 26px;
  position: absolute;
  width: 100%;
  border-radius: 4px;
  left: 0;
  right: 0;
  transform: rotate(-5deg);
  bottom: 7px;
  box-shadow: 0px 2px 2px 0px #5b6f73;
}

.tyre-wrap {
  position: relative;
  &:before {
    content: '';
    position: absolute;
    width: 320px;
    height: 20px;
    left: 9px;
    top: 5px;
    background: rgba(73, 84, 86, 0.3);
    border-radius: 50%;
  }
}

.tyre {
  width: 45px;
  height: 18px;
  background: #384142;
  border-radius: 0 0 15px 15px;
  display: inline-block;
  &.left {
    float: left;
    margin-left: 40px;
    box-shadow: inset 45px 6px 0px -10px #495456;
  }
  &.right {
    float: right;
    margin-right: 40px;
    height: 26px;
    box-shadow: inset -45px 6px 0px -10px #495456;
  }
}

.other-bus-wrap {
  position: absolute;
  top: 145px;
  width: 100%;
  .bus-wrap {
    transform: scale(0.3);
    position: absolute;
    &.purple {
      background: #b284be;
      left: -130px;
      z-index: -1;
      &:before {
        background: #b284be;
      }
    }
    &.green {
      background: #97d8c3;
      right: -130px;
      z-index: -1;
      &:before {
        background: #97d8c3;
      }
    }
  }
  .purple {
    .text-wrap p,
    hr,
    .line-item-list {
      background: #a878a7;
    }
    .text-wrap p {
      color: #ccc;
    }
    .mirror {
      border-color: #a878a7;
    }
  }
  .green {
    .text-wrap p,
    hr,
    .line-item-list {
      background: #90c9b7;
    }
    .text-wrap p {
      color: #4a4a4a;
    }
    .mirror {
      border-color: #90c9b7;
    }
  }
  .number-plate {
    transform: rotate(0deg);
  }
}

.cloud-background-wrap {
  position : relative;
  max-width: 900px;
  margin: 0 auto;
}

.cloud {
  background: #fff;
    background: -moz-linear-gradient(top, #fff 5%, #f1f1f1 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(5%,#fff), color-stop(100%,#f1f1f1));
    background: -webkit-linear-gradient(top, #fff 5%,#f1f1f1 100%);
    background: -o-linear-gradient(top, #fff 5%,#f1f1f1 100%);
    background: -ms-linear-gradient(top, #fff 5%,#f1f1f1 100%);
    background: linear-gradient(top, #fff 5%,#f1f1f1 100%);
  
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    -webkit-box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    height: 120px;
    position: absolute;
    width: 350px;
    top:50px;
    transform: scale(0.3);
  opacity: 0.5;
  &:after, &:before {
    background: #fff;
    content: '';
    position: absolute;
    z-indeX: -1;
}
  &:before {
    -webkit-border-radius: 200px;
    -moz-border-radius: 200px;
    border-radius: 200px;
    width: 180px;
    height: 180px;
    right: 50px;
    top: -90px;
}
  &:after {
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    border-radius: 100px;
    height: 100px;
    left: 50px;
    top: -50px;
    width: 100px;
}
  &.cloud-2 {
    top: 50px;
    right: 0px;
  }
  &.cloud-3 {
   left: 190px;
    top: 100px;
    opacity: 0.3;
    width: 400px;
    &:after {
      left: 95px;
    }
  }
}
            
          
!
            
              //Artwork from: https://dribbble.com/shots/3010252-Happy-Dashain (Anjan Shrestha)

/*Next Steps:
	Add animation to the bus.
*/
            
          
!
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