Skip to content

Responsive, CSS3, touch-enabled jQuery Coverflow plugin.

Notifications You must be signed in to change notification settings

nickBumgarner/jquery-flipster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.Flipster

jQuery Flipster is a CSS3 3D transform-based jQuery plugin that replicates the familiar 'cover flow' effect. It's responsive, so it will automatically center itself and scale down to fit the area provided. It likes to be playfully touched on mobile browsers. It degrades (vaguely) gracefully, falling back to being just as flat and boring as the browsers that don't support 3D transforms. Its only dependency is jQuery and it sets up in seconds. It's pretty rad.

At this point you're probably saying 'ZOMG JQUERY FLIPSTER WHERE HAVE U BEEN ALL MY LIFE???'. I would be if I were you. So your project needs some sweet, sweet coverflow loving. You've come to the right place.

Live demo: http://a.drien.com/jquery-flipster/

Browsers tested in:

  • Fully Functional:
    • Chrome (latest)
    • Safari & Mobile Safari (latest)
  • Mostly Functional (no box reflections):
    • Firefox (latest)
    • IE 10
  • Limited Functionality:
    • IE 7, 8 & 9 - no 3D transforms, 'compatibility mode'

Untested in:

  • Android browsers
  • Opera
  • IE <= 6

Usage

Include the JS after jQuery, and the CSS wherever you like, then:

$('.sweet-ass-coverflow-slider').flipster();
<div class="sweet-ass-coverflow-slider">
    <ul>
    
      <li>
        <div>
            <img src="">
        </div>
      </li>
      
      <li>
        <div>
            <img src="">
        </div>
      </li>
      
    </ul>
</div>

There are no parameters for now. The slider can be operated with arrow keys, clicks, side to side scrolling or by touch on mobile devices. Wrapping the image elements in anchor tags also works to enable linking out from the current element.

Contributing

If you can make this better, don't be shy! I'll be happy to merge pull requests as long as they keep the project lightweight, simple to set up and free of dependencies beyond jQuery.

Also, if you run into a problem or have an idea, feel free to make an issue on the github project and I'll get on it when I can!

Version History

  • 0.2.0 - June 27 2013

    • Added automatic height adjustment for the container element, which used to just overflow.
    • A few minor code improvements.
    • Added minified versions of the js and css files.
  • 0.1.3 - March 25 2013

    • Strong men also cry, strong men also cry.
  • 0.1.0 - March 25 2013

    • Improvements in fallbacks for old version of IE and basic fixes to make it actually work.
  • 0.0.0 - March 22 2013

    • LIFE ON THE BLEEDING EDGE BABY

License

© 2013 Adrien Delessert

Licensed for use under the WTFPL. http://www.wtfpl.net/

About

Responsive, CSS3, touch-enabled jQuery Coverflow plugin.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%