Views
Actions

Event: start

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "<yambe:breadcrumb>Turn Events</yambe:breadcrumb>")
 
Line 1: Line 1:
 +
This event is triggered when an animation of a page starts.
 +
 +
{| class="wikitable"
 +
|-
 +
! scope="col"| Argument
 +
! scope="col"| Type
 +
! scope="col"| Description
 +
|-
 +
| event
 +
| Object
 +
| Event Object
 +
|-
 +
| page
 +
| Number
 +
| The page number
 +
|-
 +
| corner
 +
| Number
 +
| [[Corner|The corner type]]
 +
|}
 +
 +
Example:
 +
<pre class="javascript">
 +
$("#flipbook").bind("missing", function(event, page) {
 +
for (var i = 0; i < pages.length; i++) {
 +
$(this).turn("addPage", $("<div />"), pages[i]);
 +
}
 +
});
 +
</pre>
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>
 
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>

Revision as of 20:01, 6 July 2012

This event is triggered when an animation of a page starts.

Argument Type Description
event Object Event Object
page Number The page number
corner Number The corner type

Example:

$("#flipbook").bind("missing", function(event, page) {
	for (var i = 0; i < pages.length; i++) {
		$(this).turn("addPage", $("<div />"), pages[i]);
	}
});
Main Page > API > Turn Events > Event: start