CodePen

HTML

            
              <div class="module">
  <h2 class="stripe-4">Other Direction, Different Angle</h2>
  <p>If the colors have a lot of contrast, this one can be very jagged. Even normal tricks like translateZ(0) don't work to fix it.</p>
</div>
            
          
!

CSS

            
              .module {
  background: white;
  border: 1px solid #ccc;
  margin: 3%;
  > h2 {
    padding: 1rem;
    margin: 0 0 0.5rem 0;
  }
  > p {
    padding: 0 1rem;
  }
}

.stripe-4 {
  color: white;
  background: repeating-linear-gradient(
    -55deg,
    #333 1px,
    violet 2px,
    violet 11px,
    #333 12px,
    #333 20px
  );
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................