Skip to main content
Post Made Community Wiki by animusonStaffMod
added 1 character in body
Source Link
AstroCB
  • 12.4k
  • 13
  • 113
  • 129

Also on codepenCodePen

//Made for StackoverflowStack Overflow Code Testing

//Unicorn Inspired by http://drbl.in/kayh

//Made by Mr. Alien


/*
 * Just created in a hurry, so won't refactor my CSS
 * as of now, also I can drastically reduce
 * the markup but I won't do it right now
*/
html, body {
  height: 450px;
  background: -webkit-radial-gradient(center, ellipse, #fce300 0%, #ffc700 46%, #ff7f00 100%);
  background: radial-gradient(ellipse at center, #fce300 0%,#ffc700 46%,#ff7f00 100%);
}

.unicorn {
  position: absolute;
  left: 50%;
  top: 170px;
  margin-left: -250px;
}

.tail > div,
.body > div,
.leg > div,
.leg2 > div,
.leg3 > div,
.unihorn {
  width: 0; 
  height: 0;
  position: absolute;
  -webkit-transform-origin: 50% 50%;
      -ms-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}

.tail .pone{ 
  border-left: 30px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 30px solid #ffb82b;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

.tail .ptwo {
  border-left: 40px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid #FD8A07;
  -webkit-transform: rotate(-39deg);
      -ms-transform: rotate(-39deg);
          transform: rotate(-39deg);
  top: 26px;
  left: -30px;
}

.tail .pthree {
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent; 
  border-right: 30px solid #ffb82b; 
  -webkit-transform: rotate(5deg); 
      -ms-transform: rotate(5deg); 
          transform: rotate(5deg);
  top: 45px;
  left: -12px;
}

.tail .pfour {
  top: 72px;
  left: 17px;
  border-bottom: 35px solid #FD8A07;
  border-right: 35px solid transparent;
  -webkit-transform: rotate(5deg);
      -ms-transform: rotate(5deg);
          transform: rotate(5deg);
}

div.body .pone {
  border-top: 10px solid transparent;
  border-left: 221px solid #FD8A07;
  border-bottom: 60px solid transparent;
  -webkit-transform: rotate(40deg);
      -ms-transform: rotate(40deg);
          transform: rotate(40deg);
  top: 65px;
  left: 45px;
}

div.body .ptwo {
  border-bottom: 70px solid #ffb82b;
  border-left: 90px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(43deg);
      -ms-transform: rotate(43deg);
          transform: rotate(43deg);
  top: 15px;
  left: 87px;
}

div.body .pthree {
  border-bottom: 100px solid #FD8A07;
  border-left: 20px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(71deg);
      -ms-transform: rotate(71deg);
          transform: rotate(71deg);
  top: 15px;
  left: 200px;
}

div.body .pfour {
  border-bottom: 100px solid #ffb82b;
  border-left: 30px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(109deg);
      -ms-transform: rotate(109deg);
          transform: rotate(109deg);
  top: 38px;
  left: 246px;
}

div.body .pfive {
  border-bottom: 60px solid #FD8A07;
  border-right: 105px solid transparent;
  left: 310px;
  top: -27px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
}

div.body .psix {
  border-top: 85px solid #ffb82b;
  border-left: 85px solid transparent;
  left: 319px;
  top: -40px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .pseven {
  border-bottom: 110px solid #FD8A07;
  border-left: 85px solid transparent;
  left: 350px;
  top: -144px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .peight {
  border-bottom: 90px solid #ffb82b;
  border-right: 120px solid transparent;
  left: 425px;
  top: -92px;
  -webkit-transform: rotate(18deg);
      -ms-transform: rotate(18deg);
          transform: rotate(18deg);
}

div.body > div.eye {
  background-color: #000;
  top: -70px;
  left: 445px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  z-index: 1;
}

div.nose {
  border-bottom: 40px solid #f27d00;
  border-right: 40px solid transparent;
  -webkit-transform: rotate(-28deg);
      -ms-transform: rotate(-28deg);
          transform: rotate(-28deg);
  left: 480px;
  top: -15px;
}

div.extreme-left {
  border-top: 115px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 110px solid transparent;
  -webkit-transform: rotate(-65deg);
      -ms-transform: rotate(-65deg);
          transform: rotate(-65deg);
  left: 130px;
  top: 4px;
}

div.leg .pone {
  border-top: 120px solid transparent;
  border-right: 60px solid #FD8A07;
  border-bottom: 0px solid transparent;
  -webkit-transform: rotate(-50deg);
      -ms-transform: rotate(-50deg);
          transform: rotate(-50deg);
  top: 55px;
  left: 45px; 
}

div.leg .ptwo {
  border-top: 20px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 20px solid transparent;
  top: 145px;
  -webkit-transform: rotate(-24deg);
      -ms-transform: rotate(-24deg);
          transform: rotate(-24deg);
  left: 66px;
}

div.leg .pthree {
  border-top: 15px solid transparent;
  border-right: 33px solid #FD8A07;
  border-bottom: 20px solid transparent;
  top: 164px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
  left: 63px;
}

div.leg .pfour {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 165px;
  left: 80px;
}

div.leg .pfive {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 235px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 89px;
}

div.body .extreme-right {
  left: 246px;
  top: 100px;
  border-top: 30px solid #FD8A07;
  border-left: 80px solid transparent;
  border-right: 85px solid transparent;
  -webkit-transform: rotate(-33deg);
      -ms-transform: rotate(-33deg);
          transform: rotate(-33deg);
}

div.leg2 div.pone {
  border-top: 50px solid #ffb82b;
  border-right: 85px solid transparent;
  left: 339px;
  top: 84px;
  -webkit-transform: rotate(-53deg);
      -ms-transform: rotate(-53deg);
          transform: rotate(-53deg);
}

div.leg2 div.ptwo {
  border-bottom: 20px solid #FD8A07;
  border-left: 42px solid transparent;
  border-right: 30px solid transparent;
  -webkit-transform: rotate(62deg);
      -ms-transform: rotate(62deg);
          transform: rotate(62deg);
  left: 328px;
  top: 146px;
}

div.leg2 .pthree {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 154px;
  left: 368px;
}

div.leg2 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 230px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 378px;
}

div.leg3 div.pone {
  border-top: 50px solid transparent;
  border-left: 60px solid #ef7b00;
  border-bottom: 30px solid transparent;
  left: 382px;
  top: 60px;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

div.leg3 div.ptwo {
  border-left: 0px solid transparent;
  border-right: 30px solid transparent;
  border-top: 50px solid #e87604;
  left: 419px;
  top: 116px;
  -webkit-transform: rotate(-18deg);
      -ms-transform: rotate(-18deg);
          transform: rotate(-18deg);
}

div.leg3 div.pthree {
  border-bottom: 30px solid #e5892d;
  border-left: 13px solid transparent;
  left: 411px;
  top: 143px;
  -webkit-transform: rotate(-17deg);
      -ms-transform: rotate(-17deg);
          transform: rotate(-17deg);
}

div.leg3 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 173px;
  -webkit-transform: rotate(76deg);
      -ms-transform: rotate(76deg);
          transform: rotate(76deg);
  left: 403px;
}

.unihorn {
  top: -130px;
  left: 446px;
  border-top: 10px solid transparent;
  border-left: 120px solid #FD8A07;
  border-bottom: 10px solid transparent;
  -webkit-transform: rotate(-36deg);
      -ms-transform: rotate(-36deg);
          transform: rotate(-36deg);
}
<div class="unicorn">
  <div class="tail">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="body">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
    <div class="psix"></div>
    <div class="pseven"></div>
    <div class="peight"></div>
    <div class="eye"></div>
    <div class="nose"></div>
    <div class="extreme-left"></div>
    <div class="extreme-right"></div>
  </div>
  <div class="leg">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
  </div>
  <div class="leg2">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="leg3">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="unihorn"></div>
</div>

Also on codepen

//Made for Stackoverflow Code Testing

//Unicorn Inspired by http://drbl.in/kayh

//Made by Mr. Alien


/*
 * Just created in a hurry, so won't refactor my CSS
 * as of now, also I can drastically reduce
 * the markup but I won't do it right now
*/
html, body {
  height: 450px;
  background: -webkit-radial-gradient(center, ellipse, #fce300 0%, #ffc700 46%, #ff7f00 100%);
  background: radial-gradient(ellipse at center, #fce300 0%,#ffc700 46%,#ff7f00 100%);
}

.unicorn {
  position: absolute;
  left: 50%;
  top: 170px;
  margin-left: -250px;
}

.tail > div,
.body > div,
.leg > div,
.leg2 > div,
.leg3 > div,
.unihorn {
  width: 0; 
  height: 0;
  position: absolute;
  -webkit-transform-origin: 50% 50%;
      -ms-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}

.tail .pone{ 
  border-left: 30px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 30px solid #ffb82b;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

.tail .ptwo {
  border-left: 40px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid #FD8A07;
  -webkit-transform: rotate(-39deg);
      -ms-transform: rotate(-39deg);
          transform: rotate(-39deg);
  top: 26px;
  left: -30px;
}

.tail .pthree {
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent; 
  border-right: 30px solid #ffb82b; 
  -webkit-transform: rotate(5deg); 
      -ms-transform: rotate(5deg); 
          transform: rotate(5deg);
  top: 45px;
  left: -12px;
}

.tail .pfour {
  top: 72px;
  left: 17px;
  border-bottom: 35px solid #FD8A07;
  border-right: 35px solid transparent;
  -webkit-transform: rotate(5deg);
      -ms-transform: rotate(5deg);
          transform: rotate(5deg);
}

div.body .pone {
  border-top: 10px solid transparent;
  border-left: 221px solid #FD8A07;
  border-bottom: 60px solid transparent;
  -webkit-transform: rotate(40deg);
      -ms-transform: rotate(40deg);
          transform: rotate(40deg);
  top: 65px;
  left: 45px;
}

div.body .ptwo {
  border-bottom: 70px solid #ffb82b;
  border-left: 90px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(43deg);
      -ms-transform: rotate(43deg);
          transform: rotate(43deg);
  top: 15px;
  left: 87px;
}

div.body .pthree {
  border-bottom: 100px solid #FD8A07;
  border-left: 20px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(71deg);
      -ms-transform: rotate(71deg);
          transform: rotate(71deg);
  top: 15px;
  left: 200px;
}

div.body .pfour {
  border-bottom: 100px solid #ffb82b;
  border-left: 30px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(109deg);
      -ms-transform: rotate(109deg);
          transform: rotate(109deg);
  top: 38px;
  left: 246px;
}

div.body .pfive {
  border-bottom: 60px solid #FD8A07;
  border-right: 105px solid transparent;
  left: 310px;
  top: -27px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
}

div.body .psix {
  border-top: 85px solid #ffb82b;
  border-left: 85px solid transparent;
  left: 319px;
  top: -40px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .pseven {
  border-bottom: 110px solid #FD8A07;
  border-left: 85px solid transparent;
  left: 350px;
  top: -144px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .peight {
  border-bottom: 90px solid #ffb82b;
  border-right: 120px solid transparent;
  left: 425px;
  top: -92px;
  -webkit-transform: rotate(18deg);
      -ms-transform: rotate(18deg);
          transform: rotate(18deg);
}

div.body > div.eye {
  background-color: #000;
  top: -70px;
  left: 445px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  z-index: 1;
}

div.nose {
  border-bottom: 40px solid #f27d00;
  border-right: 40px solid transparent;
  -webkit-transform: rotate(-28deg);
      -ms-transform: rotate(-28deg);
          transform: rotate(-28deg);
  left: 480px;
  top: -15px;
}

div.extreme-left {
  border-top: 115px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 110px solid transparent;
  -webkit-transform: rotate(-65deg);
      -ms-transform: rotate(-65deg);
          transform: rotate(-65deg);
  left: 130px;
  top: 4px;
}

div.leg .pone {
  border-top: 120px solid transparent;
  border-right: 60px solid #FD8A07;
  border-bottom: 0px solid transparent;
  -webkit-transform: rotate(-50deg);
      -ms-transform: rotate(-50deg);
          transform: rotate(-50deg);
  top: 55px;
  left: 45px; 
}

div.leg .ptwo {
  border-top: 20px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 20px solid transparent;
  top: 145px;
  -webkit-transform: rotate(-24deg);
      -ms-transform: rotate(-24deg);
          transform: rotate(-24deg);
  left: 66px;
}

div.leg .pthree {
  border-top: 15px solid transparent;
  border-right: 33px solid #FD8A07;
  border-bottom: 20px solid transparent;
  top: 164px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
  left: 63px;
}

div.leg .pfour {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 165px;
  left: 80px;
}

div.leg .pfive {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 235px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 89px;
}

div.body .extreme-right {
  left: 246px;
  top: 100px;
  border-top: 30px solid #FD8A07;
  border-left: 80px solid transparent;
  border-right: 85px solid transparent;
  -webkit-transform: rotate(-33deg);
      -ms-transform: rotate(-33deg);
          transform: rotate(-33deg);
}

div.leg2 div.pone {
  border-top: 50px solid #ffb82b;
  border-right: 85px solid transparent;
  left: 339px;
  top: 84px;
  -webkit-transform: rotate(-53deg);
      -ms-transform: rotate(-53deg);
          transform: rotate(-53deg);
}

div.leg2 div.ptwo {
  border-bottom: 20px solid #FD8A07;
  border-left: 42px solid transparent;
  border-right: 30px solid transparent;
  -webkit-transform: rotate(62deg);
      -ms-transform: rotate(62deg);
          transform: rotate(62deg);
  left: 328px;
  top: 146px;
}

div.leg2 .pthree {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 154px;
  left: 368px;
}

div.leg2 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 230px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 378px;
}

div.leg3 div.pone {
  border-top: 50px solid transparent;
  border-left: 60px solid #ef7b00;
  border-bottom: 30px solid transparent;
  left: 382px;
  top: 60px;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

div.leg3 div.ptwo {
  border-left: 0px solid transparent;
  border-right: 30px solid transparent;
  border-top: 50px solid #e87604;
  left: 419px;
  top: 116px;
  -webkit-transform: rotate(-18deg);
      -ms-transform: rotate(-18deg);
          transform: rotate(-18deg);
}

div.leg3 div.pthree {
  border-bottom: 30px solid #e5892d;
  border-left: 13px solid transparent;
  left: 411px;
  top: 143px;
  -webkit-transform: rotate(-17deg);
      -ms-transform: rotate(-17deg);
          transform: rotate(-17deg);
}

div.leg3 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 173px;
  -webkit-transform: rotate(76deg);
      -ms-transform: rotate(76deg);
          transform: rotate(76deg);
  left: 403px;
}

.unihorn {
  top: -130px;
  left: 446px;
  border-top: 10px solid transparent;
  border-left: 120px solid #FD8A07;
  border-bottom: 10px solid transparent;
  -webkit-transform: rotate(-36deg);
      -ms-transform: rotate(-36deg);
          transform: rotate(-36deg);
}
<div class="unicorn">
  <div class="tail">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="body">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
    <div class="psix"></div>
    <div class="pseven"></div>
    <div class="peight"></div>
    <div class="eye"></div>
    <div class="nose"></div>
    <div class="extreme-left"></div>
    <div class="extreme-right"></div>
  </div>
  <div class="leg">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
  </div>
  <div class="leg2">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="leg3">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="unihorn"></div>
</div>

Also on CodePen

//Made for Stack Overflow Code Testing

//Unicorn Inspired by http://drbl.in/kayh

//Made by Mr. Alien


/*
 * Just created in a hurry, so won't refactor my CSS
 * as of now, also I can drastically reduce
 * the markup but I won't do it right now
*/
html, body {
  height: 450px;
  background: -webkit-radial-gradient(center, ellipse, #fce300 0%, #ffc700 46%, #ff7f00 100%);
  background: radial-gradient(ellipse at center, #fce300 0%,#ffc700 46%,#ff7f00 100%);
}

.unicorn {
  position: absolute;
  left: 50%;
  top: 170px;
  margin-left: -250px;
}

.tail > div,
.body > div,
.leg > div,
.leg2 > div,
.leg3 > div,
.unihorn {
  width: 0; 
  height: 0;
  position: absolute;
  -webkit-transform-origin: 50% 50%;
      -ms-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}

.tail .pone{ 
  border-left: 30px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 30px solid #ffb82b;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

.tail .ptwo {
  border-left: 40px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid #FD8A07;
  -webkit-transform: rotate(-39deg);
      -ms-transform: rotate(-39deg);
          transform: rotate(-39deg);
  top: 26px;
  left: -30px;
}

.tail .pthree {
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent; 
  border-right: 30px solid #ffb82b; 
  -webkit-transform: rotate(5deg); 
      -ms-transform: rotate(5deg); 
          transform: rotate(5deg);
  top: 45px;
  left: -12px;
}

.tail .pfour {
  top: 72px;
  left: 17px;
  border-bottom: 35px solid #FD8A07;
  border-right: 35px solid transparent;
  -webkit-transform: rotate(5deg);
      -ms-transform: rotate(5deg);
          transform: rotate(5deg);
}

div.body .pone {
  border-top: 10px solid transparent;
  border-left: 221px solid #FD8A07;
  border-bottom: 60px solid transparent;
  -webkit-transform: rotate(40deg);
      -ms-transform: rotate(40deg);
          transform: rotate(40deg);
  top: 65px;
  left: 45px;
}

div.body .ptwo {
  border-bottom: 70px solid #ffb82b;
  border-left: 90px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(43deg);
      -ms-transform: rotate(43deg);
          transform: rotate(43deg);
  top: 15px;
  left: 87px;
}

div.body .pthree {
  border-bottom: 100px solid #FD8A07;
  border-left: 20px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(71deg);
      -ms-transform: rotate(71deg);
          transform: rotate(71deg);
  top: 15px;
  left: 200px;
}

div.body .pfour {
  border-bottom: 100px solid #ffb82b;
  border-left: 30px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(109deg);
      -ms-transform: rotate(109deg);
          transform: rotate(109deg);
  top: 38px;
  left: 246px;
}

div.body .pfive {
  border-bottom: 60px solid #FD8A07;
  border-right: 105px solid transparent;
  left: 310px;
  top: -27px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
}

div.body .psix {
  border-top: 85px solid #ffb82b;
  border-left: 85px solid transparent;
  left: 319px;
  top: -40px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .pseven {
  border-bottom: 110px solid #FD8A07;
  border-left: 85px solid transparent;
  left: 350px;
  top: -144px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .peight {
  border-bottom: 90px solid #ffb82b;
  border-right: 120px solid transparent;
  left: 425px;
  top: -92px;
  -webkit-transform: rotate(18deg);
      -ms-transform: rotate(18deg);
          transform: rotate(18deg);
}

div.body > div.eye {
  background-color: #000;
  top: -70px;
  left: 445px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  z-index: 1;
}

div.nose {
  border-bottom: 40px solid #f27d00;
  border-right: 40px solid transparent;
  -webkit-transform: rotate(-28deg);
      -ms-transform: rotate(-28deg);
          transform: rotate(-28deg);
  left: 480px;
  top: -15px;
}

div.extreme-left {
  border-top: 115px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 110px solid transparent;
  -webkit-transform: rotate(-65deg);
      -ms-transform: rotate(-65deg);
          transform: rotate(-65deg);
  left: 130px;
  top: 4px;
}

div.leg .pone {
  border-top: 120px solid transparent;
  border-right: 60px solid #FD8A07;
  border-bottom: 0px solid transparent;
  -webkit-transform: rotate(-50deg);
      -ms-transform: rotate(-50deg);
          transform: rotate(-50deg);
  top: 55px;
  left: 45px; 
}

div.leg .ptwo {
  border-top: 20px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 20px solid transparent;
  top: 145px;
  -webkit-transform: rotate(-24deg);
      -ms-transform: rotate(-24deg);
          transform: rotate(-24deg);
  left: 66px;
}

div.leg .pthree {
  border-top: 15px solid transparent;
  border-right: 33px solid #FD8A07;
  border-bottom: 20px solid transparent;
  top: 164px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
  left: 63px;
}

div.leg .pfour {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 165px;
  left: 80px;
}

div.leg .pfive {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 235px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 89px;
}

div.body .extreme-right {
  left: 246px;
  top: 100px;
  border-top: 30px solid #FD8A07;
  border-left: 80px solid transparent;
  border-right: 85px solid transparent;
  -webkit-transform: rotate(-33deg);
      -ms-transform: rotate(-33deg);
          transform: rotate(-33deg);
}

div.leg2 div.pone {
  border-top: 50px solid #ffb82b;
  border-right: 85px solid transparent;
  left: 339px;
  top: 84px;
  -webkit-transform: rotate(-53deg);
      -ms-transform: rotate(-53deg);
          transform: rotate(-53deg);
}

div.leg2 div.ptwo {
  border-bottom: 20px solid #FD8A07;
  border-left: 42px solid transparent;
  border-right: 30px solid transparent;
  -webkit-transform: rotate(62deg);
      -ms-transform: rotate(62deg);
          transform: rotate(62deg);
  left: 328px;
  top: 146px;
}

div.leg2 .pthree {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 154px;
  left: 368px;
}

div.leg2 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 230px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 378px;
}

div.leg3 div.pone {
  border-top: 50px solid transparent;
  border-left: 60px solid #ef7b00;
  border-bottom: 30px solid transparent;
  left: 382px;
  top: 60px;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

div.leg3 div.ptwo {
  border-left: 0px solid transparent;
  border-right: 30px solid transparent;
  border-top: 50px solid #e87604;
  left: 419px;
  top: 116px;
  -webkit-transform: rotate(-18deg);
      -ms-transform: rotate(-18deg);
          transform: rotate(-18deg);
}

div.leg3 div.pthree {
  border-bottom: 30px solid #e5892d;
  border-left: 13px solid transparent;
  left: 411px;
  top: 143px;
  -webkit-transform: rotate(-17deg);
      -ms-transform: rotate(-17deg);
          transform: rotate(-17deg);
}

div.leg3 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 173px;
  -webkit-transform: rotate(76deg);
      -ms-transform: rotate(76deg);
          transform: rotate(76deg);
  left: 403px;
}

.unihorn {
  top: -130px;
  left: 446px;
  border-top: 10px solid transparent;
  border-left: 120px solid #FD8A07;
  border-bottom: 10px solid transparent;
  -webkit-transform: rotate(-36deg);
      -ms-transform: rotate(-36deg);
          transform: rotate(-36deg);
}
<div class="unicorn">
  <div class="tail">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="body">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
    <div class="psix"></div>
    <div class="pseven"></div>
    <div class="peight"></div>
    <div class="eye"></div>
    <div class="nose"></div>
    <div class="extreme-left"></div>
    <div class="extreme-right"></div>
  </div>
  <div class="leg">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
  </div>
  <div class="leg2">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="leg3">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="unihorn"></div>
</div>
Source Link
Mr. Alien
  • 157.1k
  • 3
  • 32
  • 40

Huh? Not much love for CSS in the current answers? So I would share mine... designed specially for testing this feature... :)

Also on codepen

Conclusion : It will be great if we can use Auto Prefixer, Prefix free like general plugins

//Made for Stackoverflow Code Testing

//Unicorn Inspired by http://drbl.in/kayh

//Made by Mr. Alien


/*
 * Just created in a hurry, so won't refactor my CSS
 * as of now, also I can drastically reduce
 * the markup but I won't do it right now
*/
html, body {
  height: 450px;
  background: -webkit-radial-gradient(center, ellipse, #fce300 0%, #ffc700 46%, #ff7f00 100%);
  background: radial-gradient(ellipse at center, #fce300 0%,#ffc700 46%,#ff7f00 100%);
}

.unicorn {
  position: absolute;
  left: 50%;
  top: 170px;
  margin-left: -250px;
}

.tail > div,
.body > div,
.leg > div,
.leg2 > div,
.leg3 > div,
.unihorn {
  width: 0; 
  height: 0;
  position: absolute;
  -webkit-transform-origin: 50% 50%;
      -ms-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
}

.tail .pone{ 
  border-left: 30px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 30px solid #ffb82b;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

.tail .ptwo {
  border-left: 40px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid #FD8A07;
  -webkit-transform: rotate(-39deg);
      -ms-transform: rotate(-39deg);
          transform: rotate(-39deg);
  top: 26px;
  left: -30px;
}

.tail .pthree {
  border-top: 30px solid transparent;
  border-bottom: 30px solid transparent; 
  border-right: 30px solid #ffb82b; 
  -webkit-transform: rotate(5deg); 
      -ms-transform: rotate(5deg); 
          transform: rotate(5deg);
  top: 45px;
  left: -12px;
}

.tail .pfour {
  top: 72px;
  left: 17px;
  border-bottom: 35px solid #FD8A07;
  border-right: 35px solid transparent;
  -webkit-transform: rotate(5deg);
      -ms-transform: rotate(5deg);
          transform: rotate(5deg);
}

div.body .pone {
  border-top: 10px solid transparent;
  border-left: 221px solid #FD8A07;
  border-bottom: 60px solid transparent;
  -webkit-transform: rotate(40deg);
      -ms-transform: rotate(40deg);
          transform: rotate(40deg);
  top: 65px;
  left: 45px;
}

div.body .ptwo {
  border-bottom: 70px solid #ffb82b;
  border-left: 90px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(43deg);
      -ms-transform: rotate(43deg);
          transform: rotate(43deg);
  top: 15px;
  left: 87px;
}

div.body .pthree {
  border-bottom: 100px solid #FD8A07;
  border-left: 20px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(71deg);
      -ms-transform: rotate(71deg);
          transform: rotate(71deg);
  top: 15px;
  left: 200px;
}

div.body .pfour {
  border-bottom: 100px solid #ffb82b;
  border-left: 30px solid transparent;
  border-right: 130px solid transparent;
  -webkit-transform: rotate(109deg);
      -ms-transform: rotate(109deg);
          transform: rotate(109deg);
  top: 38px;
  left: 246px;
}

div.body .pfive {
  border-bottom: 60px solid #FD8A07;
  border-right: 105px solid transparent;
  left: 310px;
  top: -27px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
}

div.body .psix {
  border-top: 85px solid #ffb82b;
  border-left: 85px solid transparent;
  left: 319px;
  top: -40px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .pseven {
  border-bottom: 110px solid #FD8A07;
  border-left: 85px solid transparent;
  left: 350px;
  top: -144px;
  -webkit-transform: rotate(19deg);
      -ms-transform: rotate(19deg);
          transform: rotate(19deg);
}

div.body .peight {
  border-bottom: 90px solid #ffb82b;
  border-right: 120px solid transparent;
  left: 425px;
  top: -92px;
  -webkit-transform: rotate(18deg);
      -ms-transform: rotate(18deg);
          transform: rotate(18deg);
}

div.body > div.eye {
  background-color: #000;
  top: -70px;
  left: 445px;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  z-index: 1;
}

div.nose {
  border-bottom: 40px solid #f27d00;
  border-right: 40px solid transparent;
  -webkit-transform: rotate(-28deg);
      -ms-transform: rotate(-28deg);
          transform: rotate(-28deg);
  left: 480px;
  top: -15px;
}

div.extreme-left {
  border-top: 115px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 110px solid transparent;
  -webkit-transform: rotate(-65deg);
      -ms-transform: rotate(-65deg);
          transform: rotate(-65deg);
  left: 130px;
  top: 4px;
}

div.leg .pone {
  border-top: 120px solid transparent;
  border-right: 60px solid #FD8A07;
  border-bottom: 0px solid transparent;
  -webkit-transform: rotate(-50deg);
      -ms-transform: rotate(-50deg);
          transform: rotate(-50deg);
  top: 55px;
  left: 45px; 
}

div.leg .ptwo {
  border-top: 20px solid transparent;
  border-right: 30px solid #ffb82b;
  border-bottom: 20px solid transparent;
  top: 145px;
  -webkit-transform: rotate(-24deg);
      -ms-transform: rotate(-24deg);
          transform: rotate(-24deg);
  left: 66px;
}

div.leg .pthree {
  border-top: 15px solid transparent;
  border-right: 33px solid #FD8A07;
  border-bottom: 20px solid transparent;
  top: 164px;
  -webkit-transform: rotate(34deg);
      -ms-transform: rotate(34deg);
          transform: rotate(34deg);
  left: 63px;
}

div.leg .pfour {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 165px;
  left: 80px;
}

div.leg .pfive {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 235px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 89px;
}

div.body .extreme-right {
  left: 246px;
  top: 100px;
  border-top: 30px solid #FD8A07;
  border-left: 80px solid transparent;
  border-right: 85px solid transparent;
  -webkit-transform: rotate(-33deg);
      -ms-transform: rotate(-33deg);
          transform: rotate(-33deg);
}

div.leg2 div.pone {
  border-top: 50px solid #ffb82b;
  border-right: 85px solid transparent;
  left: 339px;
  top: 84px;
  -webkit-transform: rotate(-53deg);
      -ms-transform: rotate(-53deg);
          transform: rotate(-53deg);
}

div.leg2 div.ptwo {
  border-bottom: 20px solid #FD8A07;
  border-left: 42px solid transparent;
  border-right: 30px solid transparent;
  -webkit-transform: rotate(62deg);
      -ms-transform: rotate(62deg);
          transform: rotate(62deg);
  left: 328px;
  top: 146px;
}

div.leg2 .pthree {
  border-left: 0 solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 100px solid #ffb82b;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  top: 154px;
  left: 368px;
}

div.leg2 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 230px;
  -webkit-transform: rotate(-15deg);
      -ms-transform: rotate(-15deg);
          transform: rotate(-15deg);
  left: 378px;
}

div.leg3 div.pone {
  border-top: 50px solid transparent;
  border-left: 60px solid #ef7b00;
  border-bottom: 30px solid transparent;
  left: 382px;
  top: 60px;
  -webkit-transform: rotate(6deg);
      -ms-transform: rotate(6deg);
          transform: rotate(6deg);
}

div.leg3 div.ptwo {
  border-left: 0px solid transparent;
  border-right: 30px solid transparent;
  border-top: 50px solid #e87604;
  left: 419px;
  top: 116px;
  -webkit-transform: rotate(-18deg);
      -ms-transform: rotate(-18deg);
          transform: rotate(-18deg);
}

div.leg3 div.pthree {
  border-bottom: 30px solid #e5892d;
  border-left: 13px solid transparent;
  left: 411px;
  top: 143px;
  -webkit-transform: rotate(-17deg);
      -ms-transform: rotate(-17deg);
          transform: rotate(-17deg);
}

div.leg3 .pfour {
  border-bottom: 30px solid #FD8A07;
  border-right: 30px solid transparent;
  top: 173px;
  -webkit-transform: rotate(76deg);
      -ms-transform: rotate(76deg);
          transform: rotate(76deg);
  left: 403px;
}

.unihorn {
  top: -130px;
  left: 446px;
  border-top: 10px solid transparent;
  border-left: 120px solid #FD8A07;
  border-bottom: 10px solid transparent;
  -webkit-transform: rotate(-36deg);
      -ms-transform: rotate(-36deg);
          transform: rotate(-36deg);
}
<div class="unicorn">
  <div class="tail">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="body">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
    <div class="psix"></div>
    <div class="pseven"></div>
    <div class="peight"></div>
    <div class="eye"></div>
    <div class="nose"></div>
    <div class="extreme-left"></div>
    <div class="extreme-right"></div>
  </div>
  <div class="leg">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
    <div class="pfive"></div>
  </div>
  <div class="leg2">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="leg3">
    <div class="pone"></div>
    <div class="ptwo"></div>
    <div class="pthree"></div>
    <div class="pfour"></div>
  </div>
  <div class="unihorn"></div>
</div>