fancyBox v3.5.0 Release Notes
Release Date: 2018-09-29 // over 5 years ago-
Improvements
- ๐ New option
preventCaptionOverlap
(enabled by default for desktop only) prevents caption from overlapping the content; - HTML5 video now uses thumbnail image as poster;
- Redesigned caption - centered, without top border and does not hide when idling (and
preventCaptionOverlap
is enabled); - ๐ It is now easier to set content height in % (especially for iframes), there is no need to adjust bottom margin and max-height (caused by this - https://bugzilla.mozilla.org/show_bug.cgi?id=748518), because bottom margin is applied automatically using JS)
๐ Fixes
- ๐ Fixed thumbnail visibility detection (now works better with sliders);
- ๐ Fixed share modal not closing when clicking outside content area;
- ๐ Fixed iframe support for iOS
โฌ๏ธ Note about upgrading from previous versions
If you have changed the layout (as in this example: https://codepen.io/fancyapps/full/pxovaa), you most likely have to set
preventCaptionOverlap : false
to prevent content shifting. - ๐ New option