# jBox **Repository Path**: mirrors/jBox ## Basic Information - **Project Name**: jBox - **Description**: jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2019-10-17 - **Last Updated**: 2025-08-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # jBox jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more. Demo: https://stephanwagner.me/jBox Docs: https://stephanwagner.me/jBox/documentation --- ## Install ### ES6 ```bash npm install --save jbox ``` ```javascript import jBox from 'jbox'; import 'jbox/dist/jBox.all.css'; ``` ### CDN ```html ``` --- ## Tooltips Create a new instance of jBox Tooltip and attach it to elements: ```javascript new jBox('Tooltip', { attach: '.tooltip' }); ``` Now elements with `class="tooltip"` will open tooltips: ```html 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: ```javascript new jBox('Modal', { width: 300, height: 200, attach: '#myModal', title: 'My Modal Window', content: 'Hello there!' }); ``` ```html