Modals and Popups With jQuery And Animate.css | Jquery.popup.js

Jquery.popup.js IS Modals and popups for your apps is a very small jQuery plugin for creating static inline popups with CSS3 transitions built on the Animate.css library.

How to make use of it:

1. Load the mandatory jQuery library and animate.css from a CDN.

<script src="/path/to/cdn/jquery.min.js"></script>
<link rel="stylesheet" href="/path/to/cdn/animate.min.css" />

2. Insert your modal content along with a close button.

<div id="myModal" class="myModal">
  <!-- Modal Content Here -->
  <h3>Modal Title</h3>
  <p>Modal Body</p>
  <!-- Custom Close Button -->
  <b class="myModal-close js-popup-close">x</b>

3. Download and include the popup.js script after jQuery.

<script src="jquery.popup.min.js"></script>

4. Call the function to the modal popup on the web page load.


5. Apply CSS styles to the modal popup.

.myModal {
  max-width: 600px;
  padding: 1em;
  background: #eee;
  display: none;
  position: relative;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.15);

6. Style the close button no matter what you want.

.item-close {
  cursor: pointer;
  right: 5px;
  top: 5px;
  position: absolute;
  background: #222;
  color: #fff;
  border-radius: 100%;
  font-size: 14px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  width: 24px;

7. Apply fancy animations to the modal utilizing the Animate.css classes.

  classAnimateShow: 'slideInUp',
  classAnimateHide: 'fadeOut'

8. Specify the animation speed.

  time: 1000

9. Customize the looks of the modal popup.

  background: "#000",
  position: "absolute",
  opacity: .5,
  zIndex: 123456788,

10. Execute a callback function after the modal is closed.

  onPopupClose: function(e) {
    // do something

11. Execute a callback function on init.

  onPopupInit: function(e) {
    // do something

12. Close the modal popup manually.


See Demo And Download

Official Website(romamaslennikov): Click Here

This superior jQuery/javascript plugin is developed by romamaslennikov. For extra Advanced Usage, please go to the official website.

Related Posts


Responsive Image Gallery Lightbox jQuery Plugin | VenoBox

VenoBox is a responsive jQuery modal window plugin suitable for images, embedded content, iFrames, Google Maps, Vimeo, and YouTube videos. The big difference compared to many other…


[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…


Google Translate Dropdown Customize With Country Flag | GT API

Flag google translates jQuery text that takes advantage of the Google Cloud Translation API to translate web content between languages by selecting a country from the dropdown…


HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….


CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…


How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Leave a Reply

Your email address will not be published. Required fields are marked *