Minimal Clean jQuery Modal Window Plugin FrankieModalBox - Download Minimal Clean jQuery Modal Window Plugin - FrankieModalBox

Download Minimal Clean jQuery Modal Window Plugin – FrankieModalBox

Posted on

This time I will share jQuery Plugin and tutorial about Minimal Clean jQuery Modal Window Plugin – FrankieModalBox, hope it will help you in programming stack.

Minimal Clean jQuery Modal Window Plugin FrankieModalBox - Download Minimal Clean jQuery Modal Window Plugin - FrankieModalBox
File Size: 5.33 KB
Views Total: 1219
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

FrankieModalBox is a lightweight and fast jQuery modal plugin which makes it easy to display an overlay popup box with or without close button. Licensed under the MIT and GPL

How to use it:

1. Download the plugin and then include the JavaScript file jquery.frankieModalBox.min.js after jQuery.

1 <script src="//code.jquery.com/jquery-3.1.1.min.js"></script>
2 <script src="jquery.frankieModalBox.min.js"></script>

2. Put your content in the modal popup as this.

1 <div id="myModal">
2   <h2>Modal Title</h2>
3   <p>Modal content here</p>
4 </div>

3. Create a trigger link to toggle the modal popup. Note that the href value must match the modal’s container ID.

1 <a href="#myModal" id="demo">Launch</a>

4. Initialize the modal plugin and done.

1 $('#demo').frankieModal();

5. Add a close button to the modal popup:

1 <div id="myModal">
2   <div id="close-button"></div>
3   <h2>Modal Title</h2>
4   <p>Modal content here</p>
5 </div>
1 $('#demo').frankieModal({
2   closeButton:'#close-button'
3 });
1 #close-button {
2   width: 12px;
3   height: 12px;
4   margin: -5px 0 0 545px;
5   position: absolute;
6   cursor: pointer;
7   opacity: 1;
8   background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAZklEQVQoz5WQQQrAIAwExyeICJEeCh76/yf20tAgWWkXBEl2ErLwqgONXAZUFvP1vJaYvVcBCnCEYoRsqZtPyaBTmXeQNEdoJpukTGxoX8xzB2VpyPQKMMSBK9RjY4g0HOr8UPHPDVJDCheP4tTFAAAAAElFTkSuQmCC);
9 }

This awesome jQuery plugin is developed by merkjs. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net