Skip to content

Latest commit

 

History

History
53 lines (49 loc) · 997 Bytes

14-web-maker-logo.md

File metadata and controls

53 lines (49 loc) · 997 Bytes

Battle #2 - Visibility

#14 - Web Maker Logo

Link to the problem

result

<div class="wrapper">
  <div class="triangle"></div>
  <div class="triangle"></div>
  <div class="triangle"></div>
  <div class="triangle"></div>
</div>
<style>
  body {
    background: #F2F2B6;
    margin: 0;
  }
  .wrapper {
    position: relative;
    width: 280px;
    height: 130px;
    margin: 85px auto;
  }
  .triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-top: 130px solid #FF6D00;
    z-index: 1;
  }
  .triangle:nth-child(2) {
    border-top-color: #FD4602;
    left: 20px;
    z-index: 0;
  }
  .triangle:nth-child(3) {
    transform: scaleY(-1);
    border-top-color: #FD4602;
    left: 110px;
    z-index: 1;
  }
  .triangle:nth-child(4) {
    transform: scaleY(-1);
    left: 130px;
    z-index: 0;
  }
</style>