title: Add gradient background color along with stroke - CSS
body: <p>I have added background gradient to one of the css class, but it is taking color from stroke, is there a way to make the border gradient ?</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>    .flex-wrapper {
    display: flex;
    flex-flow: row nowrap;
  }
  
  .single-chart {
  margin-left:160px;
  width: 100px;
    
  }
  
  .circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    max-height: 70px;
  }
  
  .circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
  }
  
  .circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
      
  }
  
  @keyframes progress {
    0% {
      stroke-dasharray: 0 100;
    }
  }
  
  .circular-chart.blue .circle {
  stroke: #3c9ee5;
  //background:linear-gradient(to right, #e5405e 0%, #e5405e 15%, rgba(46,2014,113,0.8) 30%, rgba(39,174,96,0.3)45%,#3fffa2 60%, #1a9be0 73%, #ba68ed 100%)
  
  }
  
  .percentage {
    fill: #aaa;
    font-family: sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="flex-wrapper"&gt;
    &lt;div class="single-chart"&gt;
      &lt;svg viewbox="0 0 36 36" class="circular-chart blue"&gt;
        &lt;path class="circle-bg"
          d="M18 2.0845
            a 15.9155 15.9155 0 0 1 0 31.831
            a 15.9155 15.9155 0 0 1 0 -31.831"
        /&gt;
        &lt;path class="circle"
          stroke-dasharray="10, 100"
          d="M18 2.0845
            a 15.9155 15.9155 0 0 1 0 31.831
            a 15.9155 15.9155 0 0 1 0 -31.831"
        /&gt;
        &lt;text x="18" y="20.35" class="percentage"&gt;10%&lt;/text&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Desired gradient border.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/9nZ9H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9nZ9H.jpg" alt="enter image description here"></a></p>