Skip to content

Instantly share code, notes, and snippets.

@aaronsbrown
Last active December 16, 2015 16:39
Show Gist options
  • Save aaronsbrown/5464274 to your computer and use it in GitHub Desktop.
Save aaronsbrown/5464274 to your computer and use it in GitHub Desktop.
<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"});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment