Event: start: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
|} | |} | ||
For example, if you want to | For example, if you want to prevent the animation to start when using the corners <tt>tl</tt> and <tt>tr</tt>, you can use the start event and prevent its default action: | ||
<pre class="javascript"> | <pre class="javascript"> |
Revision as of 05:41, 10 July 2012
This event is triggered when an animation of a page starts. In other words, before showing a folded page.
Argument | Type | Description |
---|---|---|
event | Object | Event Object |
page | Number | The page number |
corner | Number | Corner type |
Default action |
---|
To show the folded page |
For example, if you want to prevent the animation to start when using the corners tl and tr, you can use the start event and prevent its default action:
$("#flipbook").bind("start", function(event, page, corner) { if (corner=="tl" || corner=="tr") { event.preventDefault(); } });
Event Sequence
<yambe:breadcrumb>Turn Events</yambe:breadcrumb>