Giter Club home page Giter Club logo

lightbox's Introduction

Lightbox.js

Call the plugin:

    $(var).lightbox();
  • Light
  • Responsive
  • Display with cookies
  • jQuery 1.9/2.0 ready (min jQuery 1.8)
  • jQuery UI 1.9+

Browsers : IE7+, Firefox 5+, Chrome 20+, Safari 3+, Opera 10+

### jQuery 1.9 vs 2.0:

Lightbox.js is compatible with version 2.0 of jQuery (beta 1 for now). This version no longer supports version of Internet Explorer 7 and 8.

If you want to use version 2.0 of jQuery using the following html code:

    
        
        
        <script src="jquery-2.0.0.js"></script>
        
    
### Options: #### Opening one time by session options (cookies):

The use of the variable "openFirst" active display popup unique throughout the duration of the session configured by the cookie created with the option "openFirst" enabled.

The plugin "jquery-cookie.js" is required to create the cookie. Integrated package. (https://github.com/carhartl/jquery-cookie)

    openFirst: boolean
        Default: false
    cookieName: varchar
        Default: lightbox
    cookieTime: numeric (days)
        Default: 7
#### Opening options:
    openSpeed: numeric
        Default: 500
    openEffect: effect
        Default: fade
    openEasing: effect
        Default: linear
#### Closing options:
    closeSpeed: numeric
        Default: 500
    closeEffect: effect
        Default: fade
    closeEasing: effect
        Default: linear
#### Others options:
    aroundEffect: boolean
        Default: true
    aroundClose: boolean
        Default: false
    globalClass: varchar
        Default: lightbox
    relAttr: varchar
        Default: lightbox
### Realignment when resizing the window:

The realignment is integrated in the plugin.

lightbox's People

Contributors

borisdamevin avatar

Watchers

James Cloos avatar Gratiani Bejinariu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.