Installation

SimpleLightbox is packaged as UMD library so you can use it in CommonJS and AMD environment or with browser globals.


            // install via npm
            npm install {{ npmRepositoryName }} --save

            // if you use bundler
            var SimpleLightbox = require('{{ npmRepositoryName }}');

            // or just using browser globals
            var SimpleLightbox = window.SimpleLightbox;

            // if using bundler with jQuery
            var $ = require('jquery');
            var SimpleLightbox = require('{{ npmRepositoryName }}');
            SimpleLightbox.registerAsJqueryPlugin($);

        

For browser usage browse dist folder - if working with build tools go with src folder. Download library files from github repo, get them via npm (npm install {{ npmRepositoryName }})