jQuery plugin for image galleries with a cover flow effect.
Demo and Documentation: http://flowgallery.org
The required markup for the image gallery is a simple unordered list of images:
<ul id="gallery">
<li><img src="..." title="image caption text" alt="image" /></li>
<li><img src="..." title="image caption text" alt="image" /></li>
<li><img src="..." title="image caption text" alt="image" /></li>
<li><img src="..." title="image caption text" alt="image" /></li>
<li><img src="..." title="image caption text" alt="image" /></li>
<li><img src="..." title="image caption text" alt="image" /></li>
</ul>
For basic usage with default settings, select the appropriate list and initialize as follows:
$("#gallery").flowGallery({
easing: 'easeOutCubic',
});
There are many additional configuration options, see project website for more details: http://flowgallery.org.
I remove forceWidth and forceHeight options. Instead, I add contentWidth, contentHeight and fillMode. contentWidth and contentHeight is the maximum size the image will show. fillMode specifies how the image show in the content rect. fillMode can be
"original": the image's original size"stretch": the image is scaled to fit the content rect"preserveAspectFit": the image is scaled uniformly to fit without cropping
example:
$('#gallery').flowgallery({
easing: 'easeOutCubic',
contentWidth: 800,
contentHeight: 600,
fillMode: "preserveAspectFit"
});
});
- jQuery (tested with 1.4+)
- Optional: jQuery Easing (http://gsgd.co.uk/sandbox/jquery/easing/) for additional easing options
Tested under:
- Firefox 3.5+
- Safari 5
- Chrome 4+
- Opera 11
- IE7+
Copyright (c) 2012 Boris Searles, released under MIT license.