fancyBox3
jQuery lightbox script for displaying images, videos and more.
Touch enabled, responsive and fully customizable.
<!-- 1. Add latest jQuery and fancyBox files -->
<script src="//code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.2.5/jquery.fancybox.min.js"></script>
<!-- 2. Create links -->
<a data-fancybox="gallery" href="big_1.jpg"><img src="small_1.jpg"></a>
<a data-fancybox="gallery" href="big_2.jpg"><img src="small_2.jpg"></a>
<!-- 3. Have fun! -->
Looks great on every device.
Supports most common touch gestures - double-tap, pinch-in and pinch-out for image viewing;
horizontal swipe for navigation.
It is possible to open a modal while another is still visible.
Just two files. Can be implemented without writing a single line of JavaScript.
Supports most popular sites as YouTube, Vimeo and Google maps out of the box.
Hardware accelerated animations for better performance.
Set content dimensions using any CSS unit and the browser will do the rest.
All graphics, including loading icon, are created with CSS only.
By default, fancyBox fully preloads an image before displaying it. You can choose to display the image right away. It will render and show the full size image while the data is being received.
fancyBox supports srcset with the w descriptor across all browsers. This allows to serve different scaled images based on viewport width. What this means is that mobile users can now be served smaller file sizes, which in turn speeds up the delivery of the content. Also over time this can save quite a bit of bandwidth, which in turn can save you money.
Supported sites can be used with fancyBox by just providing the page URL. You can mix images, videos and any HTML content in each gallery.
The goal of fancyBox3 is to help you stand out and save you time. With the help of a bit of CSS and JS, you can easily create something awesome. Different animations, UI, anything is possible! 😉
Below is just a small assortment of creative demos.
There should be a price tag and a brief description of the product.
Also, a form where customers could, for example, choose product size, color and quantity.
Combination of jQuery, CSS transitions to spice up the way modal window opens.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque auctor nibh eu nibh scelerisque malesuada. Morbi mollis eleifend turpis. Mauris consequat convallis volutpat. Integer quis erat vehicula, molestie nulla vel, sagittis odio. Quisque hendrerit eleifend magna, sit amet dictum odio condimentum a. Proin et ipsum venenatis, elementum sem convallis, pellentesque elit. Mauris congue velit porttitor dui condimentum porttitor. Aenean pretium suscipit ante in imperdiet.
Nam vitae suscipit metus, eget volutpat quam. Ut et sem nunc. Vivamus erat leo, auctor in neque non, malesuada consectetur neque. Ut ac purus est. Quisque molestie pharetra sem sit amet ornare. Nam eu felis in nisl lacinia iaculis. Pellentesque ut lobortis lacus. Etiam ut eros non dui ultrices imperdiet.
Ut pulvinar sem gravida porta ullamcorper. Pellentesque laoreet tellus eu egestas tempor. Ut nec lobortis nulla. Aenean tincidunt eu eros eget tincidunt. Vivamus ac lacinia mi, ut varius justo. Praesent eu ante vel velit iaculis aliquam sit amet vestibulum purus. Fusce molestie enim eros. Pellentesque justo sem, pharetra vel ligula non, euismod elementum tortor. Morbi dui ligula, rhoncus nec dignissim a, malesuada feugiat massa.
Cras non lobortis mauris. Maecenas id placerat est, ac lobortis nisi. Aenean dapibus arcu commodo magna tristique, et facilisis diam aliquam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Fusce a vestibulum erat, nec ornare libero. Proin aliquam, neque vel mattis euismod, tortor lacus tempus turpis, ac vulputate augue nisl eget sem. Integer in porttitor mauris.
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).
Limited to 1 project
Community support
Future updates
$29
Unlimited projects
1 year premium support
Future updates
$119
Safe and Secure payments are processed by FastSpring.
No. All licenses purchased before February 24st 2017 have been automatically upgraded to their current equivalent and no action is required by the license holder.
The main purpose of Extended license is to allow you to build websites for your clients without purchasing a new license for each project.
By purchasing ONE "Extended Commercial license", you are allowed to include fancyBox in ONE product (for example: premium theme, plugin or template) for sale.
Customers and users of your product do not need to purchase their own license — as long as they are not developing their own commercial products with fancyBox.
You are not allowed to create a product directly competing with fancyBox.
For example, you are not allowed to create a premium plugin whose main purpose is to bring modal/lightbox functionality to website.