title: bootstrap 4 modal-backdrop style (specific modal)
body: <p>I wondered how can I change the colour of the modal backdrop (not the background colour of modal) for specific modal.</p>
  
  <p>The colour can be changed if I use "shown.bs.modal" with some delays. But I want to change the backdrop colour immediately.
  Hope somebody can help. Thank you.</p>
  
  <pre><code>&lt;!-- Modal --&gt;
  &lt;div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"&gt;
    &lt;div class="modal-dialog" role="document"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;h5 class="modal-title" id="exampleModalLabel"&gt;Modal title&lt;/h5&gt;
          &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
            &lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;
          &lt;/button&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          ...
        &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-secondary" data-dismiss="modal"&gt;Close&lt;/button&gt;
          &lt;button type="button" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  $('#exampleModal').on('show.bs.modal', function (e) {
                  $(".modal-backdrop").css('background', '#fb0404');
              })
  </code></pre>
  
  <p>codepen: <a href="https://codepen.io/rae0724/pen/oqmPmY" rel="noreferrer">https://codepen.io/rae0724/pen/oqmPmY</a></p>