Documentation / Core

Method: gx

The gx method (and the alias anime) is the main method of the GX framework. It allows to create, pause and resume complex animations.

Usage:

$(something).gx(styles [, duration] [, easing] [, callback]);

Example:

// start animation
$("myEl").gx({width: 300, height: 100}, 2000, 'Bounce', function() { 
	alert('Completed!'); 
});

// pause animation
$("myEl").gx('pause');

// resume animation
$("myEl").gx('resume');

Arguments:

Returns:

The object picked up with $ or jQuery.

Notes:

 

Method: gxInit

The gxInit method allows you to set the defualt GX options.

Usage:

$(something).gxInit(options);

Arguments:

Returns:

The object picked up with $ or jQuery.

Documentation / Extra

Method: show

Shows an element

Usage:

$(something).show([arguments]);

Notes:

Returns:

The object picked up with $ or jQuery.

 

Method: hide

Hides an element

Usage:

$(something).hide([arguments]);

Notes:

Returns:

The object picked up with $ or jQuery.

 

Method: fadeIn

Fades an element in

Usage:

$(something).fadeIn([arguments]);

Returns:

The object picked up with $ or jQuery.

 

Method: fadeOut

Fades an element out

Usage:

$(something).fadeOut([arguments]);

Returns:

The object picked up with $ or jQuery.

 

Method: fadeToggle

Toggles the opacity of an element

Usage:

$(something).fadeToggle([arguments]);

Returns:

The object picked up with $ or jQuery.

 

Method: fade

Shortcut for fadeIn, fadeOut and fadeToogle

Usage:

$(something).fade(mode, [arguments]);

Arguments:

Returns:

The object picked up with $ or jQuery.

 

Method: slideIn

Slides an element in

Usage:

$(something).slideIn([arguments]);

Returns:

The object picked up with $ or jQuery.

 

Method: slideOut

Slides an element out

Usage:

$(something).slideOut([arguments]);

Returns:

The object picked up with $ or jQuery.

 

Method: slideToggle

Toggles the width or the height of an element

Usage:

$(something).slideToggle([arguments]);

Returns:

The object picked up with $ or jQuery.

 

Method: slide

Shortcut for slideIn, slideOut and slideToogle

Usage:

$(something).slide(mode, [arguments]);

Arguments:

Returns:

The object picked up with $ or jQuery.

 

Method: gradient

Changes the bg or the fg color of an element

Usage:

$(something).gradient(color, [arguments]);

Arguments:

Returns:

The object picked up with $ or jQuery.

 

Method: move

Moves an element

Usage:

$(something).move(x, y, [arguments]);

Arguments:

Returns:

The object picked up with $ or jQuery.

 

Method: scale

Scales an element

Usage:

$(something).scale(width, height, [arguments]);

Arguments:

Returns:

The object picked up with $ or jQuery.