Fx

Animations, transforms, and transitions for getting the most out of hardware accelerated CSS.

Tween

Transforms a CSS property's value.

syntax

x$( selector ).tween( properties, callback );

arguments

properties

A property can be any CSS style, referenced by the JavaScript notation.

A property can also be an option from emile.js:

example

// one JSON object
x$('#box').tween({ left:'100px', backgroundColor:'blue' });
x$('#box').tween({ left:'100px', backgroundColor:'blue' }, function() {
    alert('done!');
});

// array of two JSON objects
x$('#box').tween([{left:'100px', backgroundColor:'green', duration:.2 }, { right:'100px' }]);