This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="js/TweenLite.min.js"></script> | |
<script src="js/jquery.gsap.min.js"></script> | |
// In the simplest cases, you can just pass a CSS selector string to GSAP. | |
// So instead of: | |
Timeline.to($(".class1 p"), 1, {left: "-20px"}); | |
// You can simply write: | |
Timeline.to(".class1 p", 1, {left: "-20px"}); |