src/anim/js/anim.js
function(duration, easing) {
	
	var newStylesheet = localnwt.node.create('<style type="text/css"></style>');

	easing = easing || 'ease-in';
	duration = duration || 1;

	var trail = ' ' + duration + 's ' + easing,

		// Just support all browsers for now
		cssTransitionProperties = {
			'-webkit-transition': 'all' + trail,
			'-moz-transition': ' all' + trail,
			'-o-ransition': ' all' + trail,
			'ms-transition': ' all' + trail,
			'transition': ' all' + trail
		},

		newContent = '';

	for (i in cssTransitionProperties) {
		newContent += i + ': ' + cssTransitionProperties[i] + ';';
	}
	newStylesheet.setHtml('.' + this.animClass + '{' + newContent + '}');

	localnwt.one('head').append(newStylesheet);

	setTimeout(function(){
		newStylesheet.remove()
	}, 
	duration*1001)
}
function(duration, easing) {
	
	var newStylesheet = localnwt.node.create('<style type="text/css"></style>');

	easing = easing || 'ease-in';
	duration = duration || 1;

	var trail = ' ' + duration + 's ' + easing,

		// Just support all browsers for now
		cssTransitionProperties = {
			'-webkit-transition': 'all' + trail,
			'-moz-transition': ' all' + trail,
			'-o-ransition': ' all' + trail,
			'ms-transition': ' all' + trail,
			'transition': ' all' + trail
		},

		newContent = '';

	for (i in cssTransitionProperties) {
		newContent += i + ': ' + cssTransitionProperties[i] + ';';
	}
	newStylesheet.setHtml('.' + this.animClass + '{' + newContent + '}');

	localnwt.one('head').append(newStylesheet);

	setTimeout(function(){
		newStylesheet.remove()
	}, 
	duration*1001)
}
function ( duration , easing ) { var newStylesheet = localnwt . node . create ( '<style type="text/css"></style>' ) ; easing = easing || 'ease-in' ; duration = duration || 1 ; var trail = ' ' + duration + 's ' + easing , // Just support all browsers for now cssTransitionProperties = { '-webkit-transition' : 'all' + trail , '-moz-transition' : ' all' + trail , '-o-ransition' : ' all' + trail , 'ms-transition' : ' all' + trail , 'transition' : ' all' + trail } , newContent = '' ; for ( i in cssTransitionProperties ) { newContent += i + ': ' + cssTransitionProperties [ i ] + ';' ; } newStylesheet . setHtml ( '.' + this . animClass + '{' + newContent + '}' ) ; localnwt . one ( 'head' ) . append ( newStylesheet ) ; setTimeout ( function ( ) { newStylesheet . remove ( ) } , duration * 1001 ) }
Initializes CSS for transforms
Initializes CSS for transforms