Event: start: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<yambe:breadcrumb>Turn Events</yambe:breadcrumb>") |
No edit summary |
||
(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This event is triggered when an animation of a page starts. In other words, before showing a folded page. | |||
{| class="wikitable" | |||
|- | |||
! scope="col"| Argument | |||
! scope="col"| Type | |||
! scope="col"| Description | |||
|- | |||
| event | |||
| Object | |||
| Event Object | |||
|- | |||
| pageObject | |||
| Object | |||
| [[Page Object|The page object]] | |||
|- | |||
| corner | |||
| Number | |||
| [[Corners|Corner type]] | |||
|} | |||
{| class="wikitable" | |||
|- | |||
! Default action | |||
|- | |||
| To show the folded page | |||
|} | |||
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"> | |||
$("#flipbook").bind("start", function(event, pageObject, corner) { | |||
if (corner=="tl" || corner=="tr") { | |||
event.preventDefault(); | |||
} | |||
}); | |||
</pre> | |||
== Event Sequence == | |||
# [[Event: start| Start]] | |||
# [[Event: turning| Turning]] | |||
# [[Event: turned| Turned]] | |||
# [[Event: end| End]] | |||
== See also == | |||
[[Corners]] | |||
<yambe:breadcrumb>Turn Events</yambe:breadcrumb> | <yambe:breadcrumb>Turn Events</yambe:breadcrumb> |
Latest revision as of 06:39, 26 November 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 |
pageObject | Object | The page object |
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, pageObject, corner) { if (corner=="tl" || corner=="tr") { event.preventDefault(); } });
Event Sequence
See also
Corners <yambe:breadcrumb>Turn Events</yambe:breadcrumb>