I created a pop-up with HTML, CSS & JavaScript. The pop-up is suppose to have a minimum of 3-seconds delay, however; I cannot seem to get the popup to open after the 3-second delay. Bellow is the code I wrote, I am sure it has an issue, but I am unable to find where it is.
function myFunction() {
  var element = document.getElementById('hamburger-button');
  var newElement = document.getElementById('hamburger-modal');
  if (element.classList.toggle('is-active')) {
    newElement.style.display = 'block';
  } else {
    newElement.style.display = 'none';
  }
}#hamburger-modal {
  padding: 7.5px 30px 7.5px 20px;
  background-color: #000;
  height: 55px;
  width: 190px;
  color: #fff;
  border: none;
  border-radius: 5px;
  transition-delay: 3s;
}<!-- the hamburger-button is a mobile nav button that once clicked, makes the pop-up appear -->
<div id="hamburger-modal" class="hamburger-modal-index">
  <p>Example Text</p>
  <a href="mailto:me@example.com">
    <p>me@example.com</p>
  </a>
</div> 
    