/jquery-easy-overlay

Easy & Simple jQuery plugin for loading overlay

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

jQuery Easy Overlay Plugin

Easy & Simple jQuery plugin for overlay an existing element with Css & FontAwesome


Requirements

- JQuery
- FontAwesome

Getting Started

Include the script on your page

<script src="js/jquery.easy-overlay.js">

And, for overlay an existing element

$("#elementDesired").easyOverlay("start");

For remove the overlay layer

$("#elementDesired").easyOverlay("stop");

That's all!

Options

To customize some aspects of the plugin behaviour, you can pass an object as a second parameter.

$("#elementDesired").easyOverlay("start", {
	zindex: 60000, //The default z-index of the overlay is 99999
	spin: false,   //Do not show a spinning icon on the overlay
	speed: 200     //Time in miliseconds for the fadeIn or fadeOut effects of the overlay.
});

Note: When using the stop option, actually only the speed parameter will be relevant.