vegUI.org home of the javascript based window manager and AJAX framework

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:

code: js
/* fades the node in complety from a faded out state */
v(myNode).fx_fade_in(1000);
/* fades the node out until it is 50% transparent */
v(myNode).fx_fade_out(1000,50);

Related Posts

  • No related posts



Your Comment

name:*
email-address:

Are you human?



Comments

No comments yet.