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 de fr en kn en en en en hi en en en en en en en en en ru en en ca en en en it en de en hu en es en en en en 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
[override] Jumps to a specific time (or label) without affecting whether or not the instance is paused or reversed.
The position to go to, described in any of the following ways: a numeric value indicates an absolute position, like 3 would be exactly 3 seconds from the beginning of the timeline. A string value can be either a label (i.e. “myLabel”) or a relative value using the “+=” or “-=” prefixes like “-=2” (2 seconds before the end of the timeline) or a combination like “myLabel+=2” to indicate 2 seconds after “myLabel”.
(default = true) — If true (the default), no events or callbacks will be triggered when the playhead moves to the new position defined in the timeparameter.
If there are any events/callbacks between where the playhead was and the new time, they will not be triggered because by default suppressEvents (the 2nd parameter) is true. Think of it like picking the needle up on a record player and moving it to a new position before placing it back on the record. If, however, you do not want the events/callbacks suppressed during that initial move, simply set the suppressEvents parameter to false.
//jumps to exactly 2 seconds
//jumps to exactly 2 seconds but doesn't suppress events during the initial move:
//jumps to the "myLabel" label
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.
“The GreenSock animation platform is one of the most useful sets of tools in existence when it comes to web animation.”
“The best thing about GSAP is that it just works, and it works well. On every single browser I’ve tested.”
“@greensock it’s a great library that many people love, and I know you care deeply about performance :)”
“Spent today converting an animation to pure CSS, and then into GSAP. GreenSock was an order of magnitude easier. Love it.”
“Go and browse through FWA or Awwwards, then view source of anything you see that has cool animation and you will be surprised how widely GSAP is used.”
“...obviously GSAP is incredible”
“@greensock is just pure awesomeness. What more can be said?”
“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.”
“Performance has been of paramount importance for GreenSock, so there is always peace of mind for us, developers.”
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.