WinJS.UI.Animation.slideRightOut function

Applies to Windows and Windows Phone

Slides elements out through the right side of the screen.

Syntax


WinJS.UI.Animation.slideRightOut(page, firstOutgoingElements, secondOutgoingElements, thirdOutgoingElements).done( /* Your success and error handlers */ );

Parameters

page

Type: Object

A page that contains all of the elements to slide out.

firstOutgoingElements

Type: Object

A single element or an array of elements to slide out first. If this is an array of elements, the elements exit in array order.

secondOutgoingElements

Type: Object

A single element or an array of elements to slide out once the firstOutgoingElements are gone. If this is an array of elements, the elements exit simultaneously. These elements are offset slightly more than the firstOutgoingElements.

thirdOutgoingElements

Type: Object

A single element or an array of elements to slide out once the secondOutgoingElements are gone. If this is an array of elements, the elements exit simultaneously. These elements are offset slightly more than the secondOutgoingElements.

Return value

Type: Promise

An object that returns when the animation has finished.

Remarks

The firstOutgoingElements, secondOutgoingElements, and thirdOutgoingElements parameters of this function can be expressed in several ways:

  • As the special value "undefined", which means that the animation has no such target
  • As a single object
  • As a JavaScript array (possibly empty), in which each element of the array can be a single element or a JavaScript array of elements.
  • As a NodeList (for example, the result of querySelectorAll)
  • As an HTMLCollection

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 supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI.Animation

Library

Ui.js

See also

slideRightIn
slideLeftOut
slideDown

 

 

Show:
© 2014 Microsoft