blasten / turn.js

The page flip effect for HTML5
www.turnjs.com
Other
7.22k stars 2.48k forks source link

Bilby Stampede

Get the turn.js 4th release on turnjs.com

What's new in turn.js 4th release?

Available only on turnjs.com


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?

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

Browser support

License

Released under a non-commercial BSD license

Full documentation


turnjs.com