Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

phyozawtun/Drawer-Style-Bootstrap-5-Modal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drawer Style Bootstrap 5 Modal

Drawer Style Bootstrap 5 Modal, simple and lightweight bootstrap 5 modal box.

View: Demo

Installation

CSS Style

/* Modal Box */
.right .modal-dialog,
.left .modal-dialog {
    transition: transform .25s ease-out;
    position: fixed;
    margin: auto;
    height: 100%;
}
.modal.right .modal-content,
.modal.left .modal-content {
    overflow-y: auto;
  	border-radius: 0;
  	border: none;
    height: 100%;
}
.right .modal-dialog {
    transform: translateX(50px);
    right: 0;
}
.left .modal-dialog {
    transform: translateX(-50px);
    left: 0;
}

Right drawer example

<div class="modal right">
  <div class="modal-dialog modal-sm w-100">
    <div class="modal-content">
	    ...
    </div>
  </div>
</div>

Left drawer example

<div class="modal left">
  <div class="modal-dialog modal-sm w-100">
    <div class="modal-content">
	    ...
    </div>
  </div>
</div>

Drawer size examples

<div class="modal left">
  <div class="modal-dialog modal-sm w-100">
    <div class="modal-content">
	    ...
    </div>
  </div>
</div>
<div class="modal left">
  <div class="modal-dialog modal-md w-100">
    <div class="modal-content">
	    ...
    </div>
  </div>
</div>
<div class="modal left">
  <div class="modal-dialog modal-lg w-100">
    <div class="modal-content">
	    ...
    </div>
  </div>
</div>

License

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Releases

No releases published

Packages

No packages published

Languages