Skip to content

Instantly share code, notes, and snippets.

View aaronsbrown's full-sized avatar

Aaron Brown aaronsbrown

View GitHub Profile
<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"});