title: Why is my modal popup not showing no matter what i do?
body: <p>i have an already built website i built myself and i try adding bootstrap modals it doesn't show up no matter what i try, i even use other modal examples but either it is not showing at all or it is not fully visible or clickable.</p>
  <p>below is my snippet</p>
  <p>i have checked my files if css element is overiidding another but have run out of ideas!! i need help as i'm currently working on the project please.</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>const openEls = document.querySelectorAll("[data-open]");
  const closeEls = document.querySelectorAll("[data-close]");
  const isVisible = "is-visible";
  
  for (const el of openEls) {
    el.addEventListener("click", function() {
      const modalId = this.dataset.open;
      document.getElementById(modalId).classList.add(isVisible);
    });
  }
  
  for (const el of closeEls) {
    el.addEventListener("click", function() {
      this.parentElement.parentElement.parentElement.classList.remove(isVisible);
    });
  }
  
  document.addEventListener("click", e =&gt; {
    if (e.target == document.querySelector(".modal.is-visible")) {
      document.querySelector(".modal.is-visible").classList.remove(isVisible);
    }
  });
  
  document.addEventListener("keyup", e =&gt; {
    // if we press the ESC
    if (e.key == "Escape" &amp;&amp; document.querySelector(".modal.is-visible")) {
      document.querySelector(".modal.is-visible").classList.remove(isVisible);
    }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.open-modal {
    font-weight: bold;
    background: var(--blue);
    color: var(--white);
    padding: 0.75rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 5px;
  }
  
  
  /* MODAL
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--black);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: all 0.35s ease-in;
  }
  
  .modal.is-visible {
    visibility: visible;
    opacity: 1;
  }
  
  .modal-dialog {
    position: relative;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 5px;
    background: var(--white);
    overflow: auto;
    cursor: default;
  }
  
  .modal-dialog &gt; * {
    padding: 1rem;
  }
  
  .modal-header,
  .modal-footer {
    background: var(--lightgray);
  }
  
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .modal-header .close-modal {
    font-size: 1.5rem;
  }
  
  .modal p + p {
    margin-top: 1rem;
  }
  
  
  /* ANIMATIONS
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
  [data-animation] .modal-dialog {
    opacity: 0;
    transition: all 0.5s var(--bounceEasing);
  }
  
  [data-animation].is-visible .modal-dialog {
    opacity: 1;
    transition-delay: 0.2s;
  }
  
  [data-animation="slideInOutDown"] .modal-dialog {
    transform: translateY(100%);
  }
  
  [data-animation="slideInOutTop"] .modal-dialog {
    transform: translateY(-100%);
  }
  
  [data-animation="slideInOutLeft"] .modal-dialog {
    transform: translateX(-100%);
  }
  
  [data-animation="slideInOutRight"] .modal-dialog {
    transform: translateX(100%);
  }
  
  [data-animation="zoomInOut"] .modal-dialog {
    transform: scale(0.2);
  }
  
  [data-animation="rotateInOutDown"] .modal-dialog {
    transform-origin: top left;
    transform: rotate(-1turn);
  }
  
  [data-animation="mixInAnimations"].is-visible .modal-dialog {
    animation: mixInAnimations 2s 0.2s linear forwards;
  }
  
  [data-animation="slideInOutDown"].is-visible .modal-dialog,
  [data-animation="slideInOutTop"].is-visible .modal-dialog,
  [data-animation="slideInOutLeft"].is-visible .modal-dialog,
  [data-animation="slideInOutRight"].is-visible .modal-dialog,
  [data-animation="zoomInOut"].is-visible .modal-dialog,
  [data-animation="rotateInOutDown"].is-visible .modal-dialog {
    transform: none;
  }
  
  @keyframes mixInAnimations {
    0% {
      transform: translateX(-100%);
    }
  
    10% {
      transform: translateX(0);
    }
  
    20% {
      transform: rotate(20deg);
    }
  
    30% {
      transform: rotate(-20deg);
    }
  
    40% {
      transform: rotate(15deg);
    }
  
    50% {
      transform: rotate(-15deg);
    }
  
    60% {
      transform: rotate(10deg);
    }
  
    70% {
      transform: rotate(-10deg);
    }
  
    80% {
      transform: rotate(5deg);
    }
  
    90% {
      transform: rotate(-5deg);
    }
  
    100% {
      transform: rotate(0deg);
    }
  }
  
  &lt;!-- begin snippet: js hide: false console: true babel: false --&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  
  &lt;html class="no-js" lang="zxx"&gt;
  
  
  
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta http-equiv="x-ua-compatible" content="ie=edge" /&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta name="description" content="" /&gt;
      &lt;meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" /&gt;
      &lt;meta name="apple-mobile-web-app-capable" content="yes" /&gt;
      &lt;link rel="manifest" href="site.webmanifest" /&gt;
      &lt;link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.ico" /&gt;
  
      &lt;!-- CSS here --&gt;
      &lt;link rel="stylesheet" href="assets/css/bootstrap.min.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/owl.carousel.min.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/flaticon.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/stylemodal.css"&gt;
      &lt;link rel="stylesheet" href="assets/css/ionicons.min.css"&gt;
      &lt;link rel="stylesheet" href="assets/css/slicknav.css" /&gt;
      &lt;link rel="stylesheet" href="assets/scss/stylemodal.scss"&gt;
      &lt;link rel="stylesheet" href="assets/css/animate.min.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/magnific-popup.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/fontawesome-all.min.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/themify-icons.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/slick.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/nice-select.css" /&gt;
      &lt;link rel="stylesheet" href="assets/css/style.css" /&gt;
      &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css" rel="stylesheet"&gt;
      &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" rel="stylesheet"&gt;
      &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css" rel="stylesheet"&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;!-- Preloader Start --&gt;
      &lt;div id="preloader-active"&gt;
          &lt;div class="preloader d-flex align-items-center justify-content-center"&gt;
              &lt;div class="preloader-inner position-relative"&gt;
                  &lt;div class="preloader-circle"&gt;&lt;/div&gt;
                  &lt;div class="preloader-img pere-text"&gt;
                      &lt;img src="assets/img/logo/ICON FAVICON 2.png" alt="" /&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- Preloader Start --&gt;
  
      &lt;div class="navigation-wrap start-header start-style"&gt;
          &lt;div class="container"&gt;
              &lt;div class="row"&gt;
                  &lt;div class="col-12"&gt;
                      &lt;nav class="navbar navbar-expand-md navbar-light"&gt;
  
                          &lt;a href="index.html"&gt;&lt;img src="assets/img/logo/ LOGO (1) 3.png" alt="" /&gt;&lt;/a&gt;
  
                          &lt;button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
                              &lt;span class="navbar-toggler-icon"&gt;&lt;/span&gt;
                          &lt;/button&gt;
  
                          &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
                              &lt;ul class="navbar-nav ml-auto py-4 py-md-0"&gt;
                                  &lt;li class="nav-item pl-4 pl-md-0 ml-0 ml-md-4 active"&gt;
                                      &lt;a style="font-weight: 400; font-family: SF Pro Rounded, sans-serif; font-style: normal; font-size: 16px; color: #AEB0C1;" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"&gt;Services&lt;/a&gt;
                                      &lt;div class="dropdown-menu"&gt;
                                          &lt;a class="dropdown-item" href="what-we-do.html"&gt;&lt;img src="assets/img/gallery/pointer.png" alt=""&gt; What we do&lt;/a&gt;
                                          &lt;a class="dropdown-item" href="dedicated-team.html"&gt;&lt;img src="assets/img/gallery/pointer.png" alt=""&gt; Dedicated team&lt;/a&gt;
                                          &lt;a class="dropdown-item" href="product-engineering.html"&gt;&lt;img src="assets/img/gallery/pointer.png" alt=""&gt; Product engineering&lt;/a&gt;
                                          &lt;a class="dropdown-item" href="development.html"&gt;&lt;img src="assets/img/gallery/pointer.png" alt=""&gt; Development&lt;/a&gt;
                                      &lt;/div&gt;
                                  &lt;/li&gt;
                                  &lt;li class="nav-item pl-4 pl-md-0 ml-0 ml-md-4"&gt;
                                      &lt;a style="font-weight: 400; font-family: SF Pro Rounded, sans-serif; font-style: normal; font-size: 16px; color: #AEB0C1;" class="nav-link" href="about-us.html"&gt;About&lt;/a&gt;
                                  &lt;/li&gt;
                                  &lt;li class="nav-item pl-4 pl-md-0 ml-0 ml-md-4"&gt;
                                      &lt;a style="font-weight: 400; font-family: SF Pro Rounded, sans-serif; font-style: normal; font-size: 16px; color: #AEB0C1;" class="nav-link" href="projects.html"&gt;Projects&lt;/a&gt;
                                  &lt;/li&gt;
  
                                  &lt;li class="nav-item pl-4 pl-md-0 ml-0 ml-md-4"&gt;
                                      &lt;a style="font-weight: 400; font-family: SF Pro Rounded, sans-serif; font-style: normal; font-size: 16px; color: #AEB0C1;" class="nav-link" href="careers.html"&gt;Career&lt;/a&gt;
                                  &lt;/li&gt;&lt;br&gt;
                                  &lt;li style="padding-left: 20px;"&gt;&lt;button style="background: #489DF6;" class="genric-btn success circle"&gt;
                                      Get in touch
                                  &lt;/button&gt;
  
                                      
                                  &lt;/li&gt;
  
                              &lt;/ul&gt;
                          &lt;/div&gt;
  
                      &lt;/nav&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
  
  
      &lt;main style="margin-bottom: 0px;"&gt;
  
          &lt;div class="btn-group"&gt;
              &lt;button type="button" class="open-modal" data-open="modal1"&gt;
                Launch first modal with a slide animation
              &lt;/button&gt;
              &lt;button type="button" class="open-modal" data-open="modal2"&gt;
                Launch second modal with a bunch of animations
              &lt;/button&gt;
            &lt;/div&gt;
            
            &lt;div class="modal" id="modal1" data-animation="slideInOutLeft"&gt;
              &lt;div class="modal-dialog"&gt;
                &lt;header class="modal-header"&gt;
                  The header of the first modal
                  &lt;button class="close-modal" aria-label="close modal" data-close&gt;
                    ✕  
                  &lt;/button&gt;
                &lt;/header&gt;
                &lt;section class="modal-content"&gt;
                  &lt;p&gt;&lt;strong&gt;Press ✕, ESC, or click outside of the modal to close it&lt;/strong&gt;&lt;/p&gt;
                  &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo repellendus reprehenderit accusamus totam ratione! Nesciunt, nemo dolorum recusandae ad ex nam similique dolorem ab perspiciatis qui. Facere, dignissimos. Nemo, ea.&lt;/p&gt;
                  &lt;p&gt;Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure&lt;/p&gt;
                  &lt;p&gt;Nullam vitae enim vel diam elementum tincidunt a eget metus. Curabitur finibus vestibulum rutrum. Vestibulum semper tellus vitae tortor condimentum porta. Sed id ex arcu. Vestibulum eleifend tortor non purus porta dapibus&lt;/p&gt;
                  &lt;p&gt;Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure&lt;/p&gt;
                &lt;/section&gt;
                &lt;footer class="modal-footer"&gt;
                  The footer of the first modal
                &lt;/footer&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            
            &lt;div class="modal" id="modal2" data-animation="mixInAnimations"&gt;
              &lt;div class="modal-dialog"&gt;
                &lt;header class="modal-header"&gt;
                  The header of the second modal
                  &lt;button class="close-modal" aria-label="close modal" data-close&gt;
                    ✕  
                  &lt;/button&gt;
                &lt;/header&gt;
                &lt;section class="modal-content"&gt;
                  &lt;p&gt;&lt;strong&gt;Press ✕, ESC, or click outside of the modal to close it&lt;/strong&gt;&lt;/p&gt;
                  &lt;p&gt;Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo repellendus reprehenderit accusamus totam ratione! Nesciunt, nemo dolorum recusandae ad ex nam similique dolorem ab perspiciatis qui. Facere, dignissimos. Nemo, ea.&lt;/p&gt;
                  &lt;p&gt;Nullam vitae enim vel diam elementum tincidunt a eget metus. Curabitur finibus vestibulum rutrum. Vestibulum semper tellus vitae tortor condimentum porta. Sed id ex arcu. Vestibulum eleifend tortor non purus porta dapibus&lt;/p&gt;
                &lt;/section&gt;
                &lt;footer class="modal-footer"&gt;
                  The footer of the second modal
                &lt;/footer&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            
            &lt;footer class="page-footer"&gt;
              &lt;small&gt;Made with &lt;span&gt;❤&lt;/span&gt; by &lt;a href="http://georgemartsoukos.com/" target="_blank"&gt;George Martsoukos&lt;/a&gt;
              &lt;/small&gt;
            &lt;/footer&gt;</code></pre>
  </div>
  </div>
  </p>