title: Can i add a comma (,) dynamically to a CSS pseudo element which its value is coming from CSS variable
body: <p>I want to insert the commas appropriately between the numbers.
  eg: 6,350</p>
  <p>is there any way I can achieve this in the following scenario</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-js lang-js prettyprint-override"><code>setTimeout(function () {
    $('.number-counter').each(function () {
      $(this).addClass('inView');
    });
  }, 500);</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>@property --num {
    syntax: "&lt;integer&gt;";
    initial-value: 0;
    inherits: false;
  }
  
  .number-counter {
    transition: --num 3s;
    counter-set: num var(--num);
    font: 800 40px system-ui;
  }
  .number-counter::after {
    content: counter(num);
  }
  .number-counter.inView {
    --num: var(--count);
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="number-counter" style="--count: 6350;"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>