1<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.1/gsap.min.js"></script>
2<!-- version 3.6.1-->
1<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
1<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.0/gsap.min.js"></script>
1//create a timeline instance
2var tl = gsap.timeline();
3
4//the following two lines do the SAME thing:
5tl.add( gsap.to("#id", {duration: 2, x: 100}) );
6tl.to("#id", {duration: 2, x: 100}); //shorter syntax!
1<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.1/gsap.min.js"></script>