jQuery Flyout is a simple image viewing plugin with preloading capabilities I developed in 2008 for my own projects. The goal was to provide a simple, yet effective way to view normal image links without leaving the source page by using jQuery to preload the image, show a message or loading animation during that process, and finally explode or 'flyout' the image into full view using jQuery easing animations. Flyout is not your typical Lightbox plugin for jQuery. If you are looking for an image viewer with more features or a different viewing technique, check out the list of alternatives to the right.
Having said that, I do intend to continue adding new capabilities as I have the time. I really appreciate your reports and suggestions; several of the newer features have come from users like you, so please keep writing.
heightMargin and widthMargin, which adds extra margin limitations from the viewport, or use fullSizeImage which expands the image to fullsize despite the size of the viewport.outOpacity and inOpacity, you can create subtle fading effects to display your imagesloaderOpacity option to set the opacity of the preloader element.startOffset, startHeight and startWidth settings to customize the starting location of the Flyout image to a different location on the page. This can be useful if your trigger link does not contain a thumbnail image and other effects.noConflict mode.The latest version 1.3 of jQuery Flyout has been tested successfully with jQuery versions 3.3.1, 2.2.4 and 1.12.4 and should work with jQuery version 1.7 or greater.
The following options can also be found in the README.md of the Github 1.3 release archive
Speed of the flyout animation in milliseconds.
Speed of the flyback animation in milliseconds.
Easing method for the flyout animation.
Easing method for the flyback animation.
Path to the image file to use while target image is being preloaded.
The text to display when preloading an image when loadingSrc is not present.
The ID assigned to the created flyout div element that contains the target content.
The CSS z-index for the created flyout div element (see loader option above.)
The starting CSS opacity to use for the created flyout div element (see loader option above.)
The hint text to append to the final target image alt and title tags.
The left and right margin space to restrict the final flyout target image within the current viewport. This value is effectively divided between the left and right margin, i.e. 20px on the left and 20px on the right. Overridden by destElement option.
The top and bottom margin space to restrict the final flyout target image within the current viewport. This value is effectively divided between the left and right margin, i.e. 20px on the top and 20px on the bottom. Overridden by destElement option.
The destination element to fly the target image to on the same page; uses full CSS notation, e.g. div#container. Using this overrides heightMargin, widthMargin and fullSizeImage options.
The destination element to fly the target image to on the same page; uses full CSS notation, e.g. div#container. Using this overrides heightMargin, widthMargin and fullSizeImage options.
Horizontal offset in px to start the flyout animation at.
Vertical offset in px to start the flyout animation at.
Overrides starting height of flyout animation in px; uses thumb image height by default.
Overrides starting width of flyout animation in px; uses thumb image height by default.
Callback function to run at start of flyout animation.
Callback function to run at end of flyout animation.
Callback function to run at start of flyback animation.
Callback function to run at end of flyback animation.
CSS opacity for the target flyout image and loader at start of the animation.
CSS opacity for the target flyout image and loader at end of the animation.
When true, Flyout uses window.innerHeight and innerWidth to determine viewport size. This is overridden to true if document.doctype is null.
Determines default sizing of shown image. A displayType of default respects margin settings, full uses the target image dimensions, fit expands image to max width or height of viewport depending on image, fill expands image to max width or height of image to fill the viewport entirely.
startOffset, startHeight and startWidth options on just links.body element, or are inside a container with globally redefined margin, padding or border set (like a div when divs are globally defined to have margins), the Flyout offset will be off respectively. Unfortunately there is no easy way for Flyout to figure this out for all browsers, so if you are powerless to fix the CSS of your page, you can use the startOffsetX and startOffsetY to compensate.Where do I get it? Download jQuery Flyout plugin here