susmodal
Version:
Simple library for displaying modals
24 lines (19 loc) • 614 B
JavaScript
import SUSModal from './dist/susmodal.min.js';
const MyBootstrapModal = new SUSModal( {
id: 'my-bootstrap-modal',
animation : "top",
backgroundDark: true
}
);
let btnDisplayBootstrapModal = document.getElementById("display-modal-bootstrap")
btnDisplayBootstrapModal.addEventListener('click', () => {
MyBootstrapModal.show();
});
const MyBulmaModal = new SUSModal( {
id: 'my-bulma-modal',
animation: 'bottom'
});
let btnDisplayBulmaModal = document.getElementById("display-modal-bulma")
btnDisplayBulmaModal.addEventListener('click', () => {
MyBulmaModal.show();
});