Aracılığıyla paylaş


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

Note   For Windows, this member is available starting with the WinJS 3.0 library. The WinJS 3.0 library is available via CDN, package manager, or website download but currently not through the Windows Store as a Windows Store framework package.

 

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI.Animation