All pastes #2130019 Raw Edit

Unnamed

public text v1 · immutable
#2130019 ·published 2012-03-19 14:25 UTC
rendered paste body
import com.greensock.*
import com.greensock.easing.*;
import com.greensock.plugins.*;
 
TweenPlugin.activate([BlurFilterPlugin]);
OverwriteManager.init( OverwriteManager.NONE );

var timeline;
initiateTween();

function reset()
{		
}

function initiateTween()
{
	reset();
	timeline = new TimelineLite ( { onComplete : restart } );
	
	
	TweenLite.from ( phone, 0.5, { blurFilter: { blurX : 20 }, _x: -170, ease:Expo.easeInOut });
	TweenLite.from ( readMore, 0.5, { _alpha: 0, ease:Cubic.easeOut } );

	timeline.append( TweenLite.from ( text1, 0.5, { _alpha: 0, ease:Cubic.easeOut } ), -0.5 );
	timeline.append( TweenLite.to ( text1, 0.5, { blurFilter: { blurX : 20 }, _x: 550, ease:Expo.easeInOut } ), 3 );
	timeline.append( TweenLite.from ( text2, 0.5, { _alpha: 0, ease:Cubic.easeOut } ) );
	timeline.append( TweenLite.to ( text2, 0.5, { blurFilter: { blurX : 20 }, _x: 550, ease:Expo.easeInOut } ), 3 );
}

function restart ()
{
	timeline.restart();
}