Turn.js realize the book-flipping effect

Source: Internet
Author: User

JS Plug-in net http://www.ijquery.cn/?p=173

Description: Turn.js is a lightweight (15kb) JQUERY/HTML5 plugin used to create pages like books and magazines that support touch screen devices.
The turn.js supports hardware acceleration to make the page turn effect smoother.
The API allows you to get the currently displayed page number and provides options to customize the default page number, accelerator, shadow, and delay.

Photo Show:

compatible browsers: Ie6+/firefox/google Chrome
official link:http://www.turnjs.com/
js Download:http://www.ijquery.cn/js/turn.js
preview: Http://www.ijquery.cn/demo/turn
package Download:http://www.ijquery.cn/js/turn/turn.zip

HTML code: Note that this script cannot be written in front of head, only after magazine!

[HTML]

<div id= "Magazine" >
<div style= "Background-image:url (images/01.jpg);" ></div>
<div style= "Background-image:url (images/02.jpg);" ></div>
<div style= "Background-image:url (images/03.jpg);" ></div>
<div style= "Background-image:url (images/04.jpg);" ></div>
<div style= "Background-image:url (images/05.jpg);" ></div>
<div style= "Background-image:url (images/06.jpg);" ></div>
</div>
<script type= "Text/javascript" >
$ (' #magazine '). Turn ({width:612, height:400, acceleration:true});
</script>

[/html]

JS Reference Code:

[JS]

<script type= "Text/javascript" src= "Http://www.ijquery.cn/js/jquery-1.7.2.min.js" ></script>
<script type= "Text/javascript" src= "Http://www.ijquery.cn/js/turn.min.js" ></script>

[/js]

CSS code: None

Parameter description:

width:612 width
height:400 height
Page (Type:number, default:1) returns the current number of pages
Shadows (Type:boolean, default:true) jumps to the specified number of pages
Duration (Type:number, default:600) gradient
Acceleration (Type:boolean, default:true) hardware acceleration

Reprint Please specify: Fall in love with jquery» 38th plugin: Turn.js realize the book effect

Turn.js realize the book-flipping effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.