sv 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 ms en de en fr en en en ca en en en en en en en ca en en nl en nl es nl en uk fr nl nl nl dv nl en pt en de en mn uk az en en nl ar tg en en nl nl tr it en ru en en ar tr hbs_lat de nl fi ru de nl fi ru da nl en en kn en en en en en fr en en en en en en en en en en en ca en en en en en en en nl en de en hu en fr en fr en hu 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
[static] Immediately sets properties of the target accordingly - essentially a zero-duration to() tween with a more intuitive name.
Target object (or array of objects or selector text) whose properties will be affected.
An object defining the value for each property that should be set. For example, to set mc.x to 100 and mc.y to 200, do this: TweenLite.set(mc, {x:100, y:200});  You may also define any of the special properties baked into GSAP like delay, onComplete, etc.
TweenLite.set(element, {x:100, y:50, opacity:0});
TweenLite.to(element, 0, {x:100, y:50, opacity:0});
And of course you can use an array to set the properties of multiple targets at the same time, like:
TweenLite.set([obj1, obj2, obj3], {x:100, y:50, opacity:0});
Or use selector text to target DOM elements that match that criteria.
Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
“No other animation library is as intuitive, rigorous, conceptually simple and well curated as GreenSock’s.”
“The depth of GSAP blows me away like all the time. It seems like I stumble on something new and amazing every time I peek at the docs.”
“The GreenSock animation platform is one of the most useful sets of tools in existence when it comes to web animation.”
“This is why I have absolutely no issues with paying for a subscription to GSAP, great product and awesome forum!”
“I can definitely say ever since I started using GSAP, my work exponentially improved. It basically changed my life.”
“GSAP IS the animation library and has been for years. If you're gonna learn one - this is it.”
“I will never say it enough but @greensock you are absolutely amazing and you have no idea how much time and brain cells I have spared thanks to you 🥰”
“GSAP should be the default when it comes to Javascript animations. It should literally be part of the next Javascript update.”
“It's so correct that GSAP's logo is a superhero. Every time I use GSAP it saves me heaps of time and frustration. Thank god for GSAP honestly.”
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.