| Authors: | Peter Higgins
Jonathan Bond-Caron Shane O'Sullivan Bryan Forbes |
|---|
Contents
dojox.fx provides a class of animation effects to use, and other animation and Effects additions to Dojo FX.
These are the animations provided by calling dojo.require("dojox.fx");
** Note that the transparentColor config property must be set for some animations to correctly match colours to the background colour. e.g. data-dojo-config="transparentColor: [255,255,255]"
Additionally, dojox.fx includes the Dojo Core animations, and creates aliases to them in the dojox.fx namespace. For instance:
dojox.fx.fadeIn == dojo.fadeIn
dojox.fx.chain == dojo.fx.chain
The dojox.fx project also contains additional modules, providing even more animation functions:
A cross-namespace module which mixes all the base dojox.fx animations into dojo.NodeList is available with the module dojox/fx/ext-dojo/NodeList
require(["dojo/query", "dojox/fx/ext-dojo/NodeList"], function(query){
// ...
})
This allows you to use dojo.query to select groups of nodes and create animation instances from them. If you only want stock Dojo Core animations in your dojo.query lists, check out dojo.NodeList-fx
Additionally, a module in dojox.fx also provides the dojox.fx.style APIs to dojo.query as well:
require(["dojox/fx/ext-dojo/NodeList-style"], function(){ });
Read more about CSS morphing at dojox.fx.style docs
A few modules mix into the dojo namespace, as denoted by their module names: