title: Change ::after and ::before styles with Javascript
body: <p>How can I change <code>::after</code> or <code>::before</code> styles with Javascript?</p>
  <p>This is my code:</p>
  <pre class="lang-js prettyprint-override"><code>var hh = document.querySelector('.ticket-right');
  h = window.getComputedStyle(hh, &quot;::after&quot;).getPropertyValue('top');
  </code></pre>
  <p>It returns top value. How can I change this value with Javascript?</p>