turn.js/readme.md
Emmanuel Garcia 371b66f23f r3
2012-04-02 00:52:42 -04:00

917 B
Executable File

turn.js

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

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

Full documentation


turn.js is licensed under MIT license.

turnjs.com