Site Navigation
vegUISiteKit - Effect: Fade
written by vegu on 16 Mar, 2007 10:52:37
The fade effect library adds an effect to the VSK_Node object that let's you fade a node in or out of few in a smooth transition.
The effect itself is fairly easy to use. You simply call the
fx_fade_in or
fx_fade_out methods.
Both work exactly the same, except for the difference that one fades the node into view and the other one fades the node out of few ;).
The arguments of the method are the speed of the effect (ms) - as in the time the effect takes before it is completed - and an optional limit.
When the limit argument is submitted (percentage value) then the effect will be stopped when the submitted amount of transparency is reached.
Examples:
v(myNode).fx_fade_in(1000);
v(myNode).fx_fade_out(1000,50);
Related Posts
Your Comment
Comments
No comments yet.