.. _dojox/widget/rotator/Fade: dojox.widget.rotator.Fade ========================= :Authors: Chris Barber :Project owner: Chris Barber :Available: since V1.4 .. contents:: :depth: 2 A fade and cross-fade transition for a :ref:`dojox.widget.Rotator ` or :ref:`dojox.widget.AutoRotator `. ===== Usage ===== The fade rotator transition is not an instantiated object, but rather a series of functions which consist of: * fade() - Returns a dojo.Animation that fades out the current pane, then fades in the next pane. * crossFade() - Returns a dojo.Animation that cross-fades two rotator panes. 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 using the fade transition. .. code-example:: :version: local .. css:: .. javascript:: .. html::
Declarative example ------------------- Example using cross-fade transition. .. code-example:: :version: local .. css:: .. javascript:: .. html::
Pane 0
Pane 1
Pane 2
======== 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.Pan ` is a pan and continuous pan transition for the Rotator. * :ref:`dojox.widget.rotator.Slide ` is a sliding transition for the Rotator. * :ref:`dojox.widget.rotator.Wipe ` is a wiping transition for the Rotator.