Answers for "tweenmax animations"

3

gsap

//create a timeline instance
var tl = gsap.timeline();

//the following two lines do the SAME thing:
tl.add( gsap.to("#id", {duration: 2, x: 100}) );
tl.to("#id", {duration: 2, x: 100}); //shorter syntax!
Posted by: Guest on July-04-2020

Browse Popular Code Answers by Language