Fast, light and responsive lightbox plugin.
- Documentation and getting started guide
- Examples and plugin home page
- More examples on CodePen
Project is under development, please wait until I finish it.
- Generated popup JS and CSS files are in folder
dist/
. - Source files are in folder
src/
(edit them if you wish to submit commit). - Website (examples & documentation) is in folder
website/
. - Documentation page itself is in
website/documentation.md
(contributions to it are very welcome).
To compile Magnific Popup by yourself:
-
Copy repository
-
Install grunt globally (if you haven't yet)
npm install -g grunt-cli
-
Go inside Magnific Popup folder and install Node dependencies
cd Magnific-Popup && npm install
-
Make sure you that you have grunt installed by testing:
grunt -version
-
Now simply run
grunt
to generate JS and CSS in folderdist
and site in folder_site/
.grunt
(Optionally run grunt watch
to automatically regenerate '_site' when you change files in src/
or in website/
).
Script is MIT licensed and free and will always be kept this way. But has a small restriction from me - please do not create public WordPress plugin based on it(or at least contact me before creating it), because I will make it and it'll be open source too (want to get notified?).
Created by @dimsemenov.