mirror of
https://github.com/blasten/turn.js.git
synced 2025-10-28 14:38:39 +08:00
turn.js 3rd release
Make a flip book with HTML5
Turn.js is a plugin for jQuery that adds a beautiful transition similar to real pages in a book or magazine. It works in all modern browsers including touch devices.
What's new?
-
New
addPagefor creating pages dynamically. -
New
displayfor single and double pages. -
Gradients for non-webkit browsers.
Usage
CSS code:
#magazine{
width: 800px;
height: 400px;
}
#magazine .turn-page{
background-color:#ccc;
}
HTML code:
<div id='magazine'> <div> Page 1 </div> <div> Page 2 </div> <div> Page 3 </div> </div>
JavaScript code:
$('#magazine').turn({gradients: true, acceleration: true});
Requeriments
jQuery 1.7 or later
turn.js is licensed under MIT license.
Description
Languages
JavaScript
100%