jQuery.leanModal2

A pure solution to putting your own HTML and CSS to work as a modal dialogue.

by eustasy Labs


Installation & Usage

Include after jQuery, preferably from jsDelivr. Then add a trigger element with a data-modal-id attribute pointing to the id of the modal element, and initialise leanModal on the trigger's selector. A standard href attribute can be used instead of data-modal-id.

Note: The modal element must be a sibling to the trigger element, or a child of a sibling element. This is because the plugin uses jQuery's .next() method to find the modal.


Defaults

Default Example

Modified

Modified Example