When comparing fancyBox 3 vs PhotoSwipe, the Slant community recommends PhotoSwipe for most people. In the question“What are the best browser image gallery libraries?” PhotoSwipe is ranked 2nd while fancyBox 3 is ranked 3rd. The most important reason people chose PhotoSwipe is:
No jQuery, Zepto or anything else dependency.
Ranked in these QuestionsQuestion Ranking
Pros
Pro A lot more than an image gallery
You can display other things beside images in fancyBox's dialogs.
Pro Responsive
The dialog responsivity is even better than the version 2.
Pro Can be instantiated in multiple ways
The same way version 2 was.
Pro Better than fancyBox 2
This version is lighter, easier to use and a lot more beautifull, stable and fast.
Pro Fast
Ultra fast rendering speed.
Pro Modern
Beautifull design.
Pro VanillaJS
No jQuery, Zepto or anything else dependency.
Pro Responsive
Pro Blazing fast and smooth animations
Pro Zombie browsers support
Supports IE8 and above.
Pro Seems lightweight
Cons
Con Has a jQuery dependency
Con You have to include the HTML template by yourself
The JavaScript does not generate any DOM elements to keep the bundle size low, so the task of creating the elements to put the gallery slides into is all yours.