example index

JQuery Flyout

alternatives

resources

jQuery Flyout
Setup and Styling Examples

Getting Started with jQuery Flyout

Download the Libraries

Download jQuery version 3.3.1, 2.2.4, 1.12.4 or use the GoogleAPI links

Download the jQuery Easing library version 1.4.1

Download latest jQuery Flyout release

Example 1: fullSizeImage with full Opacity animation

Here's some default CSS, jQuery Javascript and starter HTML:

.gallery {
    position:relative;
    border:1px solid #333;
    background-color:#336699;
    margin-top:20px;
}
 
.gallery a { text-decoration: none; }
 
.gallery img {
    position:relative;
    margin:20px;
    border:1px solid #FC0;
}
 
#loader {
    border:10px solid #FC0;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

and the jQuery Javascript to activate the code

$('div#gallery-1 a').flyout({
    inOpacity:0
    fullSizeImage:true,
    inSpeed:1000
});
</script>

and finally the div that wraps the image linked thumbnails; you will need to insert your own links and thumbnail images.

<div id="div#gallery-1" class="gallery">
<a href="image1.jpg"><img src="image1_thumb.jpg"/></a>
<a href="image2.jpg"><img src="image2_thumb.jpg"/></a>
<a href="image3.jpg"><img src="image3_thumb.jpg"/></a>
</div>

Gallery #1

Gallery #1 Example Explained:

Example 2: Easing, Loading Animation Example and Partial Opacity

For this example we have some additional CSS to add to the last example:

#loader2 {
    border:5px solid #FFF5D7;
    -webkit-border-radius: 6px;
    -khtml-border-radius: 6px
    -moz-border-radius: 6px;
    border-radius: 6px;
}

as well as different setup Javascript:

$('div#gallery-2 a').flyout({
    loadingSrc:'images/loading.gif',
    outEase:'easeInCirc',
    inEase:'easeOutBounce',
    loader:'loader2',
    inSpeed:1000, loaderOpacity:0.3,
    inOpacity:0.3, outOpacity:0.9});

Gallery #2

Gallery #2 Example Explained:

Example 3: External event Fly Back & Custom Margins

Slightly different CSS:

#loader3 {
    background-color:#FFF; border:9px double #909; /* this will wrap around the flyout image */
    -webkit-border-radius: 8px;
    -khtml-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    padding:6px; /* this will buffer the loader border from the flyout image */
}
 
div#gallery-3 img {
    position:relative;
    margin:30px; /* this only affects the thumbnail display */
    padding:20px; /* this only affects the thumbnail display */
    border:3px solid #CF0; /* this only affects the thumbnail display */
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px
    -moz-border-radius: 5px;
    border-radius: 5px;
}

And some new Javascript

$('#gallery-3 a').flyout({
    loadingSrc:'images/loading2.gif',
    outEase:'easeOutQuad',
    inEase:'easeInBack',
    loader:'loader3',
    widthMargin:300,
    heightMargin:300});

Gallery #3

Fly Back

Flyback link code:

<a href="#" onclick="$('div#gallery-3 a.shown').click(); return false;">Fly Back</a>

Gallery #3 Example Explained:

Example 4: Flyout Gallery Viewer

This is an advanced mashup example, demonstrating the destElement and callback options and features:

Click here to see the jQuery Flyout Photo Album Examples

Special Thanks:

special thanks to National Geographic Photography, Fred Gambino, Chris Foss and Chris Moore

jQuery Flyout Tips

Where do I get it? Download jQuery Flyout plugin here