This content has been marked as final.
Show 2 replies
-
1. Re: Set Easing in code?
vivekuma Nov 7, 2014 8:25 AM (in response to Domainscanners)The Edge API doesn't expose such functions unlike jQuery animate function.
Assuming you are using Edge 2014.1, which no longer has dependency on jQuery, so to use the jQuery animate() function you need to import jQuery.js first in the Edge composition.
But jQuery has only two effects for the animate function ("linear", and "swing").
If you want to use more effects ("easeOutQuint", "easeInQuad" etc), then you need to import jQuery-UI.js file which has all these additional effects.
So, if you have both jQuery and jQuery-UI.js then using code similar to below will give you the idea of randomizing the effects:
sym.$("Rectangle").animate({ top:'5px'}, 750, 'easeOutQuint' );
hth,
Vivekuma
-



