fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.29k stars 1.79k forks source link
fancybox gallery jquery lightbox modal responsive touch

Archived

This repository has been archived and is now part of https://github.com/fancyapps/ui

Fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.

Quick start

1. Add latest jQuery and Fancybox files

<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>

<link href="https://github.com/fancyapps/fancybox/blob/master/path/to/jquery.fancybox.min.css" rel="stylesheet" />
<script src="https://github.com/fancyapps/fancybox/raw/master/path/to/jquery.fancybox.min.js"></script>

2. Create links

<a data-fancybox="gallery" href="https://github.com/fancyapps/fancybox/blob/master/big_1.jpg">
  <img src="https://github.com/fancyapps/fancybox/raw/master/small_1.jpg" />
</a>

<a data-fancybox="gallery" href="https://github.com/fancyapps/fancybox/blob/master/big_2.jpg">
  <img src="https://github.com/fancyapps/fancybox/raw/master/small_2.jpg" />
</a>

3. Enjoy!

License

Fancybox is licensed under the GPLv3 license for all open source applications. A commercial license is required for all commercial applications (including sites, themes and apps you plan to sell).

Read more about Fancybox license.