Skip to main content
FlipView.setCustomAnimations method

Applies to Windows and Windows Phone

Sets custom animations for the FlipView to use when navigating between pages. These custom animations only apply to keyboard, mouse, and programmatically triggered navigation actions.

Syntax


flipView.setCustomAnimations(animations);

Parameters

animations

Type: Object

An object that contains up to three fields, one for each navigation action: next, previous, and jump.

Each of those fields must be a function with this signature: function (outgoingPage, incomingPage) Each function must return a WinJS.Promise that completes once the animations are finished.

If a field is null or undefined, the FlipView reverts to its default animation for that action.

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

FlipView