-
Notifications
You must be signed in to change notification settings - Fork 588
Callback Events
davidkaneda edited this page Dec 18, 2011
·
8 revisions
- pageAnimationStart
- pageAnimationEnd
- pageInserted
Function called before the animation sequence has begun when starting to navigate to a new page.
Passed:
{ direction: DIRECTION }
Where:
- DIRECTION is 'in' or 'out';
Function called after the animation sequence has ended and a new page has loaded.
Passed:
{ direction: DIRECTION, animation: ANIMATION }
Where:
- 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 view is inserted into the DOM.
Data passed:
{ page: NODE }
Where:
-
NODE is the DOM node that represents the page inserted, i.e.:
$body.trigger('pageInserted', {page: $node.appendTo($body)});