I'm trying to delay the display of a Bootstrap modal after the user has clicked on a trigger button:
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
Looking at the Bootstrap 3 documentation I can see there is a show
event that can be hooked to but am not sure how to introduce a 3 second delay before the modal appears on screen. Hoping someone can help?
Ref: http://getbootstrap.com/javascript/#modals
See Question&Answers more detail:os