WinJS.UI.Animation.createPageNavigationAnimations function

Creates an exit and entrance animation to play for a page navigation given the current and incoming pages' animation preferences and whether the pages are navigating forwards or backwards.
Syntax
var object = WinJS.UI.Animation.createPageNavigationAnimations(currentPreferredAnimation, nextPreferredAnimation, movingBackwards);
Parameters
- currentPreferredAnimation
-
Type: WinJS.UI.PageNavigationAnimation
Describes the animation the current page prefers to use.
- nextPreferredAnimation
-
Type: WinJS.UI.PageNavigationAnimation
Describes the animation the incoming page prefers to use.
- movingBackwards
-
Type: boolean
Determines whether the navigation is moving backwards
Return value
Type: Object
An object that contains an exit method used for animating exiting pages and an enter method used for animating entering pages.
Remarks
Requirements
|
Minimum WinJS version |
WinJS 1.0 |
|---|---|
|
Namespace |
WinJS.UI.Animation |