seabokas / Turn.js-5

turn.js - The page turning effect in HTML5

Home Page:http://turnjs.com/flipify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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><span class="text">Page 1</span></div>
	<div><span class="text">Page 2</span></div>
	<div><span class="text">Page 3</span></div>
</div>

JavaScript code:

$('#magazine').turn({gradients: true, acceleration: true});

Requirements

jQuery 1.7 or later

License

Released under a non-commercial BSD license

Full documentation

About

turn.js - The page turning effect in HTML5

http://turnjs.com/flipify/


Languages

Language:JavaScript 99.0%Language:Shell 1.0%