Views
Actions

Event: end

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
m
 
Line 24: Line 24:
  
 
$("#flipbook").bind("end", function(event, pageObject, turned){
 
$("#flipbook").bind("end", function(event, pageObject, turned){
alert("turn.end:" +pageObject.page);
+
  alert("turn.end:" +pageObject.page);
 
});
 
});
 
</pre>
 
</pre>

Latest revision as of 23:39, 25 November 2012

This event is triggered when the transition of a page stops.

Argument Type Description
event Object Event Object
pageObject Object The page object
pageTurned Boolean True if the page was turned

Example:


$("#flipbook").bind("end", function(event, pageObject, turned){
  alert("turn.end:" +pageObject.page);
});

[edit] Event Sequence

  1. Start
  2. Turning
  3. Turned
  4. End
Main Page > API > Turn Events > Event: end