Skip to content

Instantly share code, notes, and snippets.

@epexa
Created August 16, 2018 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epexa/162fb845c03ab2c35eb7e47d98055058 to your computer and use it in GitHub Desktop.
Save epexa/162fb845c03ab2c35eb7e47d98055058 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/bootstrap.native@2.0.23/dist/bootstrap-native-v4.js"></script>
<script>
new Modal(document.getElementById('first-modal')).show();
setTimeout(function() {
new Modal(document.getElementById('second-modal')).show();
}, 3000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment