src/anim/js/anim.js
function(node, styles, duration, easing) {

	animation.init(duration, easing);

	node.fire('anim:start', [styles, duration, easing])

	setTimeout(function(){
		node.fire('anim:done', [styles, duration, easing])
	}, duration*1000)

	// Need to be sure to implement the transition function first
	node.addClass(animation.animClass);
	
	node.setStyles(styles);


	return node;
}
function(node, styles, duration, easing) {

	animation.init(duration, easing);

	node.fire('anim:start', [styles, duration, easing])

	setTimeout(function(){
		node.fire('anim:done', [styles, duration, easing])
	}, duration*1000)

	// Need to be sure to implement the transition function first
	node.addClass(animation.animClass);
	
	node.setStyles(styles);


	return node;
}
function ( node , styles , duration , easing ) { animation . init ( duration , easing ) ; node . fire ( 'anim:start' , [ styles , duration , easing ] ) setTimeout ( function ( ) { node . fire ( 'anim:done' , [ styles , duration , easing ] ) } , duration * 1000 ) // Need to be sure to implement the transition function first node . addClass ( animation . animClass ) ; node . setStyles ( styles ) ; return node ; }
Method to animate a node
@param object NWTNode instance
@param object Object of styles to animate. E.g., {top: 10}
@param integer Duration in seconds to animate
@param string Easing type. One of: linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(n,n,n,n);
Method to animate a node