Origami Pure CSS Unicorn

HAML
.unicorn .tail .pone .ptwo .pthree .pfour .body .pone .ptwo .pthree .pfour .pfive .psix .pseven .peight .eye .nose .extreme-left .extreme-right .leg .pone .ptwo .pthree .pfour .pfive .leg2 .pone .ptwo .pthree .pfour .leg3 .pone .ptwo .pthree .pfour .unihorn
SCSS
html { height: 100%; background: linear-gradient(to left, #FF8008 , #FFC837); } .unicorn { position: absolute; left: 50%; top: 50%; margin-left: -250px; margin-top: -30px; } .tail > div, .body > div, .leg > div, .leg2 > div, .leg3 > div, .unihorn { width: 0; height: 0; position: absolute; transform-origin: 50% 50%; } .tail { .pone { border-left: 30px solid transparent; border-right: 40px solid transparent; border-bottom: 30px solid #ffb82b; transform: rotate(6deg); } .ptwo { border-left: 40px solid transparent; border-right: 30px solid transparent; border-bottom: 30px solid #FD8A07; transform: rotate(-39deg); top: 26px; left: -30px; } .pthree { border-top: 30px solid transparent; border-bottom: 30px solid transparent; border-right: 30px solid #ffb82b; transform: rotate(5deg); top: 45px; left: -12px; } .pfour { top: 72px; left: 17px; border-bottom: 35px solid #FD8A07; border-right: 35px solid transparent; transform: rotate(5deg); } } .body { .pone { border-top: 10px solid transparent; border-left: 221px solid #FD8A07; border-bottom: 60px solid transparent; transform: rotate(40deg); top: 65px; left: 45px; } .ptwo { border-bottom: 70px solid #ffb82b; border-left: 90px solid transparent; border-right: 130px solid transparent; transform: rotate(43deg); top: 15px; left: 87px; } .pthree { border-bottom: 100px solid #FD8A07; border-left: 20px solid transparent; border-right: 130px solid transparent; transform: rotate(71deg); top: 15px; left: 200px; } .pfour { border-bottom: 100px solid #ffb82b; border-left: 30px solid transparent; border-right: 130px solid transparent; transform: rotate(109deg); top: 38px; left: 246px; } .pfive { border-bottom: 60px solid #FD8A07; border-right: 105px solid transparent; left: 310px; top: -27px; transform: rotate(34deg); } .psix { border-top: 85px solid #ffb82b; border-left: 85px solid transparent; left: 319px; top: -40px; transform: rotate(19deg); } .pseven { border-bottom: 110px solid #FD8A07; border-left: 85px solid transparent; left: 350px; top: -144px; transform: rotate(19deg); } .peight { border-bottom: 90px solid #ffb82b; border-right: 120px solid transparent; left: 425px; top: -92px; transform: rotate(18deg); } .eye { background-color: #000; top: -70px; left: 445px; height: 10px; width: 10px; border-radius: 50%; z-index: 1; } } .nose { border-bottom: 40px solid #f27d00; border-right: 40px solid transparent; transform: rotate(-28deg); left: 480px; top: -15px; } .extreme-left { border-top: 115px solid transparent; border-right: 30px solid #ffb82b; border-bottom: 110px solid transparent; transform: rotate(-65deg); left: 130px; top: 4px; } .leg { .pone { border-top: 120px solid transparent; border-right: 60px solid #FD8A07; border-bottom: 0px solid transparent; transform: rotate(-50deg); top: 55px; left: 45px; } .ptwo { border-top: 20px solid transparent; border-right: 30px solid #ffb82b; border-bottom: 20px solid transparent; top: 145px; transform: rotate(-24deg); left: 66px; } .pthree { border-top: 15px solid transparent; border-right: 33px solid #FD8A07; border-bottom: 20px solid transparent; top: 164px; transform: rotate(34deg); left: 63px; } .pfour { border-left: 0 solid transparent; border-right: 20px solid transparent; border-bottom: 100px solid #ffb82b; transform: rotate(-15deg); top: 165px; left: 80px; } .pfive { border-bottom: 30px solid #FD8A07; border-right: 30px solid transparent; top: 235px; transform: rotate(-15deg); left: 89px; } } .extreme-right { left: 246px; top: 100px; border-top: 30px solid #FD8A07; border-left: 80px solid transparent; border-right: 85px solid transparent; transform: rotate(-33deg); } .leg2 { .pone { border-top: 50px solid #ffb82b; border-right: 85px solid transparent; left: 339px; top: 84px; transform: rotate(-53deg); } .ptwo { border-bottom: 20px solid #FD8A07; border-left: 42px solid transparent; border-right: 30px solid transparent; transform: rotate(62deg); left: 328px; top: 146px; } .pthree { border-left: 0 solid transparent; border-right: 20px solid transparent; border-bottom: 100px solid #ffb82b; transform: rotate(-15deg); top: 154px; left: 368px; } .pfour { border-bottom: 30px solid #FD8A07; border-right: 30px solid transparent; top: 230px; transform: rotate(-15deg); left: 378px; } } .leg3 { .pone { border-top: 50px solid transparent; border-left: 60px solid #ef7b00; border-bottom: 30px solid transparent; left: 382px; top: 60px; transform: rotate(6deg); } .ptwo { border-left: 0px solid transparent; border-right: 30px solid transparent; border-top: 50px solid #e87604; left: 419px; top: 116px; transform: rotate(-18deg); } .pthree { border-bottom: 30px solid #e5892d; border-left: 13px solid transparent; left: 411px; top: 143px; transform: rotate(-17deg); } .pfour { border-bottom: 30px solid #FD8A07; border-right: 30px solid transparent; top: 173px; 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; transform: rotate(-36deg); }
JAVASCRIPT
Expand for more options Login