How to add animation to an app?
The only control where you can change animation type is multiview (see details about multiview here).
There are 2 animation types with a few subtypes:
By default, multiview uses SLIDE animation of TOGETHER subtype.
You can change the default animation values in three ways:
dhx.ui({ view:"multiview", cells:[{ ... }], animate:{type:"flip", subtype:"vertical"} })
$$(id).show({type:"flip", subtype:"horizontal"})
//sets a type $$('multiview_id').config.animate.type = 'flip'; //sets a subtype $$('multiview_id').config.animate.subtype = 'horizontal';
By default, for each type of animation DHTMLX Touch applies the appropriate direction. But if you want you can change the default value. Use for this purpose the attribute direction.
Possible values: left, right, top, bottom.
$$('multiview_id').config.animate.direction = 'top';
Related sample: 01_views/10_multiview_animations.html
Related sample: 11_others/01_animation.html