Backflip is slideshow module built on jQuery that uses a whole bunch of CSS3 transitions, and 3D transforms, in browsers that support them, to display a grid of thumbnails and a "back" view. Once the user selects a thumbnail the section will flip the card over and display a larger, more detailed, view of the item. Get it? Backflip. So lame... I'm sorry.
Backflip takes JSON data as its input and either constructs the entire DOM structure or uses the existing markup[1] (if the JSON is parsed and turned into HTML by a server-side technology).
I built this in only a few hours so it's not production ready by any means. Having said that, Backflip should work in most browsers, although features may or may not be available, at the most basic level it should degrade peacefully. CSS transitions and 2D transforms are generally supported in most modern browsers (Firefox 4, Safari 5, Chrome, IE 9). CSS3 3D transformations (in the z-axis) is only supported by WebKit, so only Webkit browsers will get the 'flipcard' effect. Google Chrome does not support -webkit-backface-visibility
or -webkit-perspective
so while it gets a flip effect, because it lacks depth of view, it won't appear three dimensional. Safari 5 and MobileSafari are, currently, the only browsers that render the 3D effects.
This an experimental prototype and there are lots of things that I'd like to fix or add:
Added CSS3 translate3D (in browsers that understand it) for horizontal section animations. Plugifying - the
script can be called as a plugin or using the new
keyword.
Added touch events
Initial Commit
By Kris Hedstrom | View the code on Github