Skip to content

dat-boris/flowgallery

 
 

Repository files navigation

FlowGallery

jQuery plugin for image galleries with a cover flow effect.

Demo and Documentation: http://flowgallery.org

Usage

The required markup for the image gallery is a simple unordered list of images:

<ul id="gallery-multi">
    <li>
    <ul>
        <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>
    </li>
    <li>
    <ul>
        <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>
    </li>
    <li>
    <ul>
        <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>
    </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.

Example additional feature

Multiple rows of photos

Allow multiple row of photos to be shown, each move with each other in synchronous mode

<ul id="gallery">
    <ul>
      <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>
    <ul>
      <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>
    <ul>
      <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>
</ul>

This can be controlled by the multirowsync attribute.

$("#gallery").flowGallery({
  multirow: true,
  easing: 'easeOutCubic',
});

Putting elements in an arc

Thumbnails to be placed in an arc

$("#gallery").flowGallery({
  arcradius: 500,
  arcrotate: true,   // can if we rotate image based on arc
  arcanglestep : (Math.PI/40) // in radian for each step
  easing: 'easeOutCubic',
});

Dependencies

Browser Compatibility

Tested under:

  • Firefox 3.5+
  • Safari 5
  • Chrome 4+
  • Opera 11
  • IE7+

Licensing

Copyright (c) 2012 Boris Searles, released under MIT license.

About

jQuery plugin for cover flow image gallery

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Shell 0.1%