minimalmodal
v1.0.0
Published
javascript modal plugin
Downloads
1
Maintainers
Readme
minimalModal
minimalModal is a simple lightbox function. Have a only basic properties and after all the operations out of the function as a template to be sent inside. Because I did not want to increase the file size because it is an addition to many unused features.
Properties
- Pure javascript
- Ecmascript 6
- Editable properties
Installation
Download plugin files then include from page. For example:
<link rel="stylesheet" href="/dist/minimalModal.min.css" />
<script type="text/javascript" src="/dist/minimalModal.min.js"></script>
Basic Usage
var minimalModalSample = new minimalModal();
minimalModalSample.init();
Using to Parameters
var minimalModalSample = new minimalModal({
startAnimation : "topToCenter",
endAnimation : "centerToTop",
maxWidth : 600,
maxHeight : 400,
xPosition : "center",
yPosition : "center",
topOuterSpace : 0,
rightOuterSpace : 0,
bottomOuterSpace : 0,
leftOuterSpace : 0,
hiddenForGradientClick : true,
overflowX : "hidden",
overflowY : "auto",
modalTemplate: ``
});