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 de en en fr en en ca en en en en en en ca en en en pl pl sv en en en it uk ky en en ru ru az de de fa de mn uk az en en en it ar tg ru en es tr it en mr ru el ceb fa tr ko en en ar tr hbs_lat de en en fi fa ru de myv fi ru da fr eu ja en it fr en kn en ru hi en en en en en en en en en en en ca en en en en en en en en en en en es en es en de en en 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
Gets or sets the animation's paused state which indicates whether or not the animation is currently paused.
(default = false) — Omitting the parameter returns the current value (getter), whereas defining the parameter sets the value (setter) and returns the instance itself for easier chaining.
In most cases, it is easiest to use the pause() method to pause the animation, and resume() to resume it. But to check the current state, you must use the paused() method. It can also be useful for toggling like myAnimation.paused( !myAnimation.paused() );
You can set the paused state initially by passing paused: true in the vars parameter.
This method serves as both a getter and setter. Omitting the parameter returns the current value (getter), whereas defining the parameter sets the value (setter) and returns the instance itself for easier chaining, like myAnimation.paused(true).delay(2).timeScale(0.5);
var paused = myAnimation.paused(); //gets current paused state
myAnimation.paused( true ); //sets paused state to true (just like pause())
myAnimation.paused( !myAnimation.paused() ); //toggles the paused state
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.
“Aside from GreenSock’s laser-focused attention to detail, GSAP is fast, reliable, flexible, exceptional value (read: free in most cases) and, very importantly, supported.”
“@greensock is just pure awesomeness. What more can be said?”
“GSAP was a revelation for me to be compared with the introduction of jQuery”
“...obviously GSAP is incredible”
“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.”
“I’ve long felt like GSAP is the best kept secret in JavaScript.”
“It's shocking the @w3c didn't use @greensock as a model of how to do animation via code. Did they even ask animators what they use?”
“There is no doubt that GreenSock is currently the best available tool for creating astonishing interactive websites and animation effects.”
“The GreenSock animation platform is one of the most useful sets of tools in existence when it comes to web animation.”
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.