Event: turning

From Turn.js Documentation
Revision as of 06:39, 26 November 2012 by Emmanuel (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is triggered before turning the page.

Argument Type Description
event Object Event Object
page Number The page number
view Array The new view
Default action
To turn the page

For example:

$("#flipbook").bind("turning", function(event, page, view) {
  alert("Turning the page to: "+page);

You could prevent to turn to the page 1.

$("#flipbook").bind("turning", function(event, page, view) {
  if (page==1) {

Event Sequence

  1. Start
  2. Turning
  3. Turned
  4. End

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