bc... [google]
Home » Source Code » JQuery flip effects

JQuery flip effects

2013-10-21 02:41:01
The author
Download(s): 0
Point (s): 1 
Category Category:
jQuery PluginjQuery Plugin JavaScriptJavaScript


# jQuery Booklet Plugin

Booklet is a jQuery tool for displaying content on the web in a flipbook layout. 
It was built using the jQuery library. Licensed under both MIT and GPL licenses.

For detailed documentation and information, visit http://www.builtbywill.com/code/booklet/. 
Below is some basic information to get you started.

## Installation

To install jQuery Booklet into your webpage, first include jQuery, jQuery UI, jQuery Easing 
and the booklet JS and CSS files.

``` html
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js" type="text/javascript"></script>
<script src="booklet/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="booklet/jquery.booklet.latest.min.js" type="text/javascript"></script>
<link href="booklet/jquery.booklet.latest.css" type="text/css" rel="stylesheet" media="screen, projection, tv" />
The target that will become your booklet should simply be a container with multiple children. All first level children will become
pages inside of the booklet.

``` html
<div id="mybook">
<h3>Yay, Page 1!</h3>
<h3>Yay, Page 2!</h3>
<h3>Yay, Page 3!</h3>
<h3>Yay, Page 4!</h3>

Once you have the files included and the structure created, you can initialize the booklet.

``` javascript
$(function() {
//single book

//multiple books with ID's
$('#mybook1, #mybook2').booklet();

//multiple books with a class
## Documentation
### Options

Options can be set either with an init object, or afterwards with a setter function. Also, you can get the value of an option 
as well. To see all available options, see the [Documentation](http://www.builtbywill.com/code/booklet/documentation)

``` javascript
$(".selector").booklet({ width: 500 });

var width = $(".selector").booklet("option", "width");

$(".selector").booklet("option", "width", 600);

## Events

The following events are triggered when using a booklet.

* bookletcreate
* bookletstart, bookletchange
* bookletadd, bookletremove

Each event returns a data object which contains data related to the event. Common to all events are:

* data.options - the current booklet options at time of the event (read-only)
* data.index - zero-based index of the currently visible page spread

Only available for bookletcreate, bookletstart and bookletchange events:

* data.pages - an array of elements, the two currently visible pages

Only available for bookletadd and bookletremove events:

* data.page - element, the page that was either just added or just removed

You can bind your callbacks to events either at init, or using the event type. 
To see all available events, see the [Documentation](http://www.builtbywill.com/code/booklet/documentation)

``` javascript
create: function(event, data) { ... }

//event type
$(".selector").bind("bookletcreate", function(event, data) {

## Methods
The methods available for each booklet can be called on one or more booklets at the same time. 
Methods which return a value, such as an option, when called on more than one selector will return an array of values. 
Otherwise, the chainability of the elements will be maintained.

``` javascript
//destroys the booklet

// get a single returned option
var val = $("#selector").booklet("option", "width");

// get an array of returned options (for multiple booklets)
var val = $(".selector, .selector2").booklet("option", "width");

To see all available methods, see the [Documentation](http://www.builtbywill.com/code/booklet/documentation)

## Style

Once the booklet is created, the basic generated structure and CSS will appear below.

If more customization is desired, all generated classes are visible in the current jQuery Booklet stylesheet.

``` html
<div class="booklet" id="mybook">
    <div class="b-page b-page-0 b-p1">
        <div class="b-wrap b-wrap-left">
    <div class="b-page b-page-1 b-p2">
        <div class="b-wrap b-wrap-right">
    <div class="b-page b-page-2 b-p3">
        <div class="b-wrap b-wrap-left">
    <div class="b-page b-page-3 b-p4">
        <div class="b-wrap b-wrap-right">
    <div class="b-controls">

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
arrow-next.png6.33 kB24-02-13 18:10
arrow-prev.png6.10 kB24-02-13 18:10
closedhand.cur326.00 B24-02-13 18:10
openhand.cur326.00 B24-02-13 18:10
shadow-top-back.png2.79 kB24-02-13 18:10
shadow-top-forward.png2.78 kB24-02-13 18:10
shadow.png5.42 kB24-02-13 18:10
jquery-1.9.1.min.js109.05 kB24-02-13 18:10
jquery-ui-1.10.1.custom.min.js222.74 kB24-02-13 18:10
jquery.booklet.latest.css5.23 kB24-02-13 18:10
jquery.booklet.latest.js102.74 kB24-02-13 18:10
jquery.booklet.latest.min.js31.98 kB24-02-13 18:10
jquery.easing.1.3.js5.28 kB24-02-13 18:10
basic.html1.84 kB24-02-13 18:10
LICENSE1.08 kB24-02-13 18:10
README.md4.70 kB17-02-13 15:20
VERSION5.00 B24-02-13 18:10
<images>0.00 B24-02-13 18:10
<booklet>0.00 B31-07-13 15:56
<example>0.00 B21-10-13 14:36
<翻页特效>0.00 B31-07-13 15:56
Sponsored links


(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

JQuery flip effects (137.22 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points


Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D