Saturday, 7 March 2020

time function after 5 second open div

<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
  <script>
      $(document).ready(function () {
          // Hide the div
          $("#myModal").hide();
          // Show the div after 5s
          $("#myModal").delay(5000).fadeIn(100); 
      });   
  </script>

<div id="myModal">  test div </div>

No comments: