Animation Effects

The module .effects offers some useful animation effects for AV developers.

.moveValue(...)

Method .moveValue animates moving of a value from one structure to another. Structure can be an array or a tree/list node. The following parameter combinations are valid:

In addition, fromNode and toNode can be an instance of jsav.variable.

Note: both from and to structures can be the same structure.

.copyValue(...)

Method that animates copying a value from one structure to another. The same parameter combinations are valid as for the .moveValue method. The only difference is that the source value is not removed.

.swapValues(...)

Method that animates swapping a value from one structure with another. The same parameter combinations are valid as for the .moveValue method.