Create customizable tooltips, modal windows, image galleries – jBox jQuery Plugin

jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.
With jBox plugin, you can create

  • Draggable modal box
  • Animated notification
  • Nice-looking tooltip
  • Image gallery lightbox

jbox-jquery-popup


Libraries

Piece of cake: Include jQuery, jBox.min.js and jBox.css. Ready to rock & roll!




Tooltips

Create a new instance of jBox Tooltip and attach it to elements:

new jBox('Tooltip', {
  attach: '.tooltip'
});

Now elements with class=”tooltip” will open tooltips:

Hover me!
Hover me!

Modal windows

You can set up modal windows the same way as tooltips.
But most of times you’d want more variety, like a title or HTML content:

new jBox('Modal', {
    width: 300,
    height: 100,
    attach: '#myModal',
    title: 'My Modal Window',
    content: 'Hello there!'
});
 
Click me to open a modal window!



Confirm windows

Confirm windows are modal windows which requires the user to confirm a click action on an element. Give the element the data-confirm attribute to attach it:

new jBox('Confirm', {
    confirmButton: 'Do it!',
    cancelButton: 'Nope'
});
Click me!
Click me!

Notices

A notice will open automatically and destroy itself after some time:

new jBox('Notice', {
    content: 'Hurray! A notice!',
    color: 'blue'
});

See live demo and download source code.

DEMO | DOWNLOAD

This awesome plugin is developed by StephanWagner. Visit their official github repository for more information and follow for future updates.