Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

smohadjer/jquery.lightbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jquery.lightbox

A lightbox plugin for jQuery

Examples

Note: Popup's z-index should be set higher than all other element's z-index, otherwise those elements will not be covered by overlay curtain. Curtain's z-index is automatically set by js by deducting one from popup's z-index.

Options

  • modal: false (default), true

    If model is true, lightbox can not be closed by clicking popup or lightbox curtain. It can only closed by calling lightbox's public method close().

  • <li><strong>relative_to</strong>: 'window' (default), 'parent'</li>
    
    <li><strong>top</strong>: center (default), any integer value</li>
    <li><strong>left</strong>: center (default), any integer value</li>
    
    <li><strong>onClosed</strong>: callback function runs when lightbox is closed</li>
    
    <li><strong>hide_browser_scrollbar</strong>: false (default), true</li>
    
    <li><strong>has_curtain</strong>: true (default), false</li>
    <li><strong>curtain.color</strong>: '#000' (default), any color value in hexadecimal</li>
    <li><strong>curtain.opacity</strong>: 0.6 (default), any number between 0 and 1</li>
    

About

A lightbox plugin for jQuery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published