eo en en en en en en en en en en en en en en en fa en en fr hbs_lat en en en es en en en de en en fr en en ca en en en en en en eo eo en en fr en en en en en en en fr sv en en en en en en sv en id nb en en id fr en en en en en en en id nb en en id fr en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en eo en en en en en en en en en en en en en de en de en es en en en en en en en fr cv es tr es en en en en ms en en en en en en fr en hbs_lat en en en en en en en fr cv es tr es en en en en de en en en ca en en en en en
how to define a variable in the timeline?
berikiushi replied to berikiushi's topic in GSAP
his own answer .call(function(){ console.log('call.3'); }, [], this, 3) thanx
the documentation says that i can call at any time tl.call(func, ["param1"], this, 2); //appends it at exactly 2 seconds into the timeline (absolute position) I try to do so and does not work: .call(function(){ console.log('call.3'); }, 3) help please.
how to define a variable in the timeline?
berikiushi replied to berikiushi's topic in GSAP
Thank you, did not think that need to wrap a function.
how to define a variable in the timeline?
berikiushi posted a topic in GSAP
var state = true; var tl = new TimelineLite(); tl.to(element, 1, {width:"50%"}) .to(element, 1, {backgroundColor:"#FF0000"}, "-=0.5") .set(state = false) //something like for example .to(element, 1, {width:"50%", onComplete:state = false}); //or as
How start playing TimeLine from another TimeLine?
berikiushi posted a topic in GSAP
please tell me how start playing TimeLine from another TimeLine, for example: var tl1 = new TimelineMax({paused:true}); tl1.append( TweenMax.to($('.bg'), 2.2, {css:{autoAlpha:1, scale:1}, ease:Power2.easeOut}) ); // here need start playing tl2 tl1.append( TweenMax.to($('.logo'), 1, {css:{right:"+=89", autoAlpha:1}}) ); var tl2 = new TimelineMax({paused:true}); tl1.append( TweenMax.to($('.frame'), 1.5, {css:{left:+=100}, ease:Power2.easeIn}) ); tl1.append( TweenMax.to($('.bullet'), 1, {css:{top:"+=120", autoAlpha:1}}) );
“GSAP was a revelation for me to be compared with the introduction of jQuery”
“The GreenSock animation platform is one of the most useful sets of tools in existence when it comes to web animation.”
“No other animation library is as intuitive, rigorous, conceptually simple and well curated as GreenSock’s”
“I am more and more amazed every day, and very glad that I decided to get a business license.”
“Really quite impressed with @GreenSock JS - even the small things.”
“If every library were as robust and reliable as GreenSock’s, the world would be a much better place for software engineers and their clients. I can't think of a better designed or better performing tool, and as a bonus, it's fun as heck to play with.”
“This stuff is so incredibly amazing I can't believe it. The level of details and options put into these things and the natural instinct GreenSock has for solving everyday problems is impressive.”
“@greensock it’s a great library that many people love, and I know you care deeply about performance :)”
“GSAP makes my job fun, because it allows me to focus on creating rich, engaging web experiences, while GSAP handles much of the implementation details behind the scenes.”
Sign Up For Our Newsletter
Get the latest updates on GreenSock products, exclusive offers, and more right in your inbox.
Your information will always be kept confidential.
Thanks for signing up!
Now you'll begin receiving the latest GreenSock updates, exclusive offers, and more right in your inbox. Welcome aboard.