Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
hackfin

invalid pause tween value: true

Recommended Posts

I am testing an animation through Google Chrome which currently is not working.  I do not receive an error but the console log reports "invalid pause tween value: true". In general, what does this mean?  I searched the forums and did not find any topics on this message so I though I would go ahead and ask.  If it helps, below is my code for the tween:

var fadeOut = function (el) {
	var animation = TweenLite.to(el, .75, {
			autoAlpha : 0,
			bottom : "-=100px",
			ease : Linear.easeNone,
			paused : true
		});

	return animation;

};
Link to post
Share on other sites

Hi hackfin  :)

 

you just have typo issue , pls fix by use paused instead of pause

  • Like 1
Link to post
Share on other sites

In the documentation under the tweenLite.paused() method it states "You can set the paused state initially by passing paused:true in the vars parameter.  I assumed it meant the vars parameter of the tweenLite.to() since tweenLite.paused() does not have a var parameter.  Is this a typo in the documentation or did I read this wrong?

Link to post
Share on other sites

You read that correctly... :)

 

but check what you got : invalid pause tween value: true "

 

that's why i said use paused instead of pause .

 

pls check this out : 

See the Pen yOVxeZ by MAW (@MAW) on CodePen

 

btw , you can defined paused tween in this way too :

TweenLite.to( obj , 1, { .... } ).paused( true );
  • Like 2
Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×