Jump to content
GreenSock

vectorman

First and Last Value of Blurfilter

Recommended Posts

hi, i'm using as3 tweenmax and tweenlite i want to make blur and move animation. but, i need first and last values of blur effect during animation. I tried timeline and overwrite but timeline is stopping before second animation.dont understand overwrite

 

my code is here. but values is the same all time. :(

 

TweenMax.to(container.markalar, 1.5,{x:git,blurFilter:{blurX:20}, ease:Elastic.easeOut} );

TweenMax.to(container.markalar, 3,{alpha:1,blurFilter:{blurX:0}} );

 

I want to my blur effect values begin 0 , high 20 and ending with 0 again. how can i do this?

Link to comment
Share on other sites

You have several options. Assuming the blur is already at zero when you create these tweens (if not, just use the startAt property or use TweenMax.fromTo()) :

 

1) use a delay:

TweenMax.to(container.markalar, 1.5, {x:git,blurFilter:{blurX:20}, ease:Elastic.easeOut} );
TweenMax.to(container.markalar, 3,{alpha:1, blurFilter:{blurX:0}, delay:1.5} );

 

2) use a timeline:

var timeline:TimelineLite = new TimelineLite();
timeline.append( new TweenMax(container.markalar, 1.5, {x:git, blurFilter:{blurX:20}, ease:Elastic.easeOut}) );
timeline.append( new TweenMax(container.markalar, 2, {alpha:1, blurFilter:{blurX:0}}) );

 

The benefit of using a timeline is that you can control the entire sequence as a whole with pause(), play(), reverse(), restart(), etc.

 

http://blog.greensock.com/v11beta/

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×