title: How remove css from body after popup modal closed?
body: <p>I am beginner in web development.</p>
  
  <p>I have a modal show and close </p>
  
  <p>To my close popup modal function, I need add remove this style:</p>
  
  <pre><code>body::-webkit-scrollbar { display: none;  }
  html, body { -ms-overflow-style: none; overflow: auto; }
  </code></pre>
  
  <p>How can I make it?</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>$(document).ready(function() {
    // show 
    setTimeout(
      function() {
        // $('#modal__trigger2').trigger('click');
        $('#demoModal').modal('show');
      }, 2000);
  
    // and close
    $('.close-modal-box').click(function(event) {
      event.preventDefault();
      $('#demoModal').modal('hide');
      document.body.scrollTop = document.documentElement.scrollTop = 0;
      $('body').scrollTop(0);
      event.preventDefault();
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body::-webkit-scrollbar {
    display: none;
  }
  
  html,
  body {
    -ms-overflow-style: none;
    overflow: auto;
  }</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;</code></pre>
  </div>
  </div>
  </p>