CSS Page Flip: a CSS and JS 3D Page Flipper
Version 0.2 (Jan 2010)
What does this do?
It converts this:
<ol id="foo"> <li>Page 1</li> <li>Page 2</li> <li>Page 3</li> </ol>
Into a page flippable layout using pure CSS3 animations. Currently works in Safari and iPhone.
Example in action: http://jamesyu.org/css_page_flip/examples/example.html
Download the source here: http://jamesyu.org/css_page_flip/lib/css_page_flip.js
Simply include all source files under lib, and (for the example above) call:
You can apply your own styles to each page by targeting “ol li .page”. CSSPageFlip
will set the size of the flipping UI to fill the space in the containing element.
See the examples directory for more usage details.
- AJAX fetching for more pages
- Better animations
- Optional controls, zooming, and other goodness