title: Infinite chevron line
body: <p>I don't how it can't be named in english - I neither don't know in french to be honest - but I need to design an infinite line composed by normal and invert chevron. It's seems to be called a chevron line.</p>
  
  <p>Here's an example of what I want and I only need one line : </p>
  
  <p><a href="https://i.stack.imgur.com/4J451.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4J451.png" alt="enter image description here"></a></p>
  
  <p>Here what I've done so far with <code>before</code> and <code>after</code> pseudo elements. Maybe there's another way that i can't think of. Right now i didn't achieve to display it as chevron, i don't understand how repeating linear gradient works for the position.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.chevron-line {
    position: relative;
    height: 15px;
    background: white;
  }
  
  .chevron-line::before,
  .chevron-line::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .chevron-line::before {
    background: repeating-linear-gradient(135deg,
      #000, #000 5px /* black stripe */,
      transparent 0, transparent 20px /* blue stripe */
    );
   }
  
  .chevron-line::after {
    background: repeating-linear-gradient(-135deg,
      transparent 0px, transparent 10px /* blue stripe */,
      #000, #000 15px /* black stripe */,
      transparent 0px, transparent 20px /* blue stripe */
    );
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="chevron-line"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>