jQuery Modal Dialog Plugin BriefPopUp - Download Minimal Animated jQuery Modal Dialog Plugin - BriefPopUp

Download Minimal Animated jQuery Modal Dialog Plugin – BriefPopUp

Posted on

This time I will share jQuery Plugin and tutorial about Minimal Animated jQuery Modal Dialog Plugin – BriefPopUp, hope it will help you in programming stack.

jQuery Modal Dialog Plugin BriefPopUp - Download Minimal Animated jQuery Modal Dialog Plugin - BriefPopUp

File Size: 4.63 KB
Views Total: 1256
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

BriefPopUp is a really simple jQuery popup plugin which lets you create minimal clean modal windows from any inline content within the document. The plugin currently comes with 2 subtle animations: fade, fadeAndPop and is easy to customize via CSS.

How to use it:

1. Load the jQuery BriefPopUp plugin’s stylesheet in the head section of the html document.

1 <link href="css/popUpCss.css" rel="stylesheet">

2. Load jQuery JavaScript library and the jQuery BriefPopUp plugin’s script at the end of the document so the page loads faster.

1 <script src="//code.jquery.com/jquery.min.js"></script>
2 <script src="js/jquery.popup.js"></script>

3. Create the content to be embedded into the modal window.

1 <div id="my<a href="https://www.jqueryscript.net/tags.php?/Modal/">Modal</a>" class="briefPopUp-modal">
2   <h1>Modal Title</h1>
3   <p>Modal Content Here</p>
4   <a class="close-briefPopUp-modal">&#215;</a>
5 </div>

4. Create a trigger element to toggle the modal window. You can pass the plugin’s options using HTML data attributes as follows:

  • data-briefPopUp-id: modal ID
  • data-animation: ‘fade’, ‘fadeAndPop’ or ‘none’
  • data-animationspeed: animation speed in milliseconds
  • data-closeonbackgroundclick: whether to close the modal by clicking on the background overlay
01 <a href="#"
02    class="briefPopUp"
03    data-briefPopUp-id="myModal" >
04    Click me
05 </a>
06  
07 <a href="#"
08    class="briefPopUp"
09    data-briefPopUp-id="myModal"
10    data-animation="fade" >
11    Click me
12 </a>
13  
14 <a href="#"
15    class="briefPopUp"
16    data-briefPopUp-id="myModal"
17    data-animationspeed="3000">
18    Click me
19 </a>
20  
21  <input id="Button"
22         type="button"
23         class="briefPopUp"
24         value="closeonbackgroundclick = false"
25         data-briefPopUp-id="myModal"
26         data-closeonbackgroundclick="false"
27         data-animation="none">

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

source : jqueryscript.net