-
Notifications
You must be signed in to change notification settings - Fork 588
Callback Events
incredimike edited this page Nov 9, 2011
·
8 revisions
Accurate for:
$Revision: 166 $
$Date: Tue Mar 29 01:24:46 EDT 2011 $
Callbacks available:
- pageAnimationStart
- pageAnimationEnd
- pageInserted
Function called before the animation sequence has begun when loading a new page. Line num: ~179
Passed:
{ direction: BROWSE_DIRECTION }
Where:
- BROWSE_DIRECTION is 'in' or 'out';
Function called after the animation sequence has ended and a new page has loaded. Line num: ~254
Data passed:
{ direction: BROWSE_DIRECTION, animation: ANIMATION }
Where:
- BROWSE_DIRECTION is either 'in' or 'out';
- ANIMATION is a string representing the type of animations to use. Animation types are: 'slide','flip','slideup','swap','cube','pop','dissolve','fade','back' or blank for no transition animation.
Function called after a 'page' is inserted into the DOM. Line num: ~402
Data passed:
{ page: NODE }
Where:
-
NODE is the DOM node that represents the page inserted, i.e.:
$body.trigger('pageInserted', {page: $node.appendTo($body)});