1.0.0 • Published 5 years ago

minimalmodal v1.0.0

Weekly downloads
5
License
-
Repository
github
Last release
5 years ago

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:  ``
});

Parameters