Giter Club home page Giter Club logo

jquery-flipster's Introduction

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.

Version History

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/

jquery-flipster's People

Contributors

drien avatar

Watchers

Del Harvey avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.