Event: start: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
{| class="wikitable"
{| class="wikitable"
! scope="col"| Default action
! scope="col"| Default action
| colspan="2"| To start an animation
| colspan="2"| To start the animation
|}
|}



Revision as of 03:19, 7 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 Corner type
Default action To start the animation

For example, if you want to only allow the corner at the bottom of the page, you can use the start event and prevent its default action for the corners tl and tr:

$("#flipbook").bind("start", function(event, page, corner) {
	if (corner=="tl" || corner=="tr") {
		event.preventDefault();
	}
});

<yambe:breadcrumb>Turn Events</yambe:breadcrumb>