Bootstrap Modals Examples< View Code Snippets Library
Multiple Modals on a PageBootstrap 4
This demonstrates how you can load multiple modals on a page using data attributes and a single modal template that loads in the content.
Image Lightbox with ModalBootstrap 4
This demo shows how you can use Bootstrap 4 modals to load open a larger sized images referenced as data attributes.
Bootstrap 4 Modal Vertically Center FlexboxBootstrap 4
Override the default Bootstrap 4 modal so it is absolutely centered in the window.
Modal Video Autoplay and Stop When ClosedBootstrap 4 Bootstrap 5
Open a video inside a responsive modal and autoplay. When the modal is closed stop the youtube video.
Looking for something else?
Suggest or contribute a code snippet to be added to the library.