Skip to content

Instantly share code, notes, and snippets.

@epexa
Last active August 16, 2018 11:11
Show Gist options
  • Save epexa/8a181574a77d6821356c80acb0fa8f35 to your computer and use it in GitHub Desktop.
Save epexa/8a181574a77d6821356c80acb0fa8f35 to your computer and use it in GitHub Desktop.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/css/bootstrap.min.css">
<div class="modal" id="first-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
First modal
</div>
</div>
</div>
</div>
<div class="modal" id="second-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
Second modal
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.1.3/dist/js/bootstrap.min.js"></script>
<script>
$('#first-modal').modal('show');
setTimeout(function() {
$('#second-modal').modal('show');
}, 3000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment