Wijmo UI for the Web
easing Field

The easing option uses Raphael easing formulas to add effects to the animation, such as allowing an item to bounce realistically. For more information, please see Easing in the Animation topic.

Default: "linear"

Syntax
Javascript (Usage) 
var instance; // Type: wijmo.tree.wijtree_animation;
var value; // Type: string
value = instance.easing;
Javascript (Specification) 
var easing : string;

Return Value


Example
<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#tree").wijtree({
            collapseAnimation:{
                effect: "shake", 
                duration: 1000,
                easing: "easeOutBounce"
            },
            expandAnimation:{
                effect: "fold", 
                duration: 1000,
                easing: "easeInBounce"
            }
        });
    });
</script>
Remarks

Valid Values (see http://raphaeljs.com/easing.html for easing demos):

Browser Compatibility
7
5
5

See Also

Reference

wijtree_animation Interface
duration
effect
expandAnimation Option
collapseAnimation Option

Concepts

Animation

 

 


© 2013 All Rights Reserved.

Send comments on this topic.