.. _dojox/widget/rotator/Slide: dojox.widget.rotator.Slide ========================== :Authors: Chris Barber :Project owner: Chris Barber :Available: since V1.4 .. contents:: :depth: 2 A slide transition for a :ref:`dojox.widget.Rotator ` or :ref:`dojox.widget.AutoRotator `. ===== Usage ===== The slide rotator transition is not an instantiated object, but rather a series of functions which consist of: * slideDown() - Returns a dojo.Animation that slides in the next rotator pane from the top. * slideRight() - Returns a dojo.Animation that slides in the next rotator pane from the right. * slideUp() - Returns a dojo.Animation that slides in the next rotator pane from the bottom. * slideLeft() - Returns a dojo.Animation that slides in the next rotator pane from the left. These functions are invoked by the rotator and may be different per pane. Each function is passed an object containing the "transitionParams" along with the rotator's current and next pane which are to be panned, then returns a dojo.Animation object describing the animated sequence. ======== Examples ======== Programmatic example -------------------- Example of a different slide direction for each pane. .. code-example:: :version: local .. css:: .. javascript:: .. html::
Declarative example ------------------- Example of a different slide direction for each pane. .. code-example:: :version: local .. css:: .. javascript:: .. html::
Pane 0
Pane 1 will slide in from the top
Pane 1
Pane 2 will slide in from the left
Pane 2
Pane 0 will use the default transition to slide in from the right
======== See also ======== * :ref:`dojox.widget.Rotator ` rotates through a series of panes using a transitions. * :ref:`dojox.widget.AutoRotator ` adds automatic rotating to a Rotator. * :ref:`dojox.widget.rotator.Fade ` is a fade and crossfade transition for the Rotator. * :ref:`dojox.widget.rotator.Pan ` is a pan and continuous pan transition for the Rotator. * :ref:`dojox.widget.rotator.Wipe ` is a wiping transition for the Rotator.