Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <div class="container">
    <div class="shape one"></div>
  </div>
  <div class="container">
    <div class="shape one modify"></div>
  </div>
  
  <div class="container">
    <div class="shape two"></div>
  </div>
  <div class="container">
    <div class="shape two modify"></div>
  </div>
  
  
</body>
</html>
 
html {
  box-sizing: border-box;
}
*,
:after,
:before {
  box-sizing: inherit;
}
div.container {
  margin-bottom: 50px;
  div.shape {
    position: relative;    
    display: inline-block;
    width: 242px;
    height: 44px;
    border-radius: 2px 0 0 2px;
    background-color: #00B9F2;
    &:after {
      content: ' ';
      position: absolute;
      display: inline-block;
    }
    &.one.modify:after {
      top: 45px;
    }
    &.one:after {
      right: -22px;
      top: 0px;
      border-top: 22px solid transparent;
      border-left: 22px solid #00B9F2;
      border-bottom: 22px solid transparent;
    }
    &.two.modify:after {
      top: 55.7px;
    }
    
    &.two:after {
      right: -16px;
      top: 5.7px;
      width: (44px/1.41421);
      height: (44px/1.41421);
      transform: rotate(-45deg);
      background-color: #00B9F2;
    }
  }
  
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x