Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2015 16:48
Show Gist options
  • Save anonymous/b57a08d4797ce412deaf to your computer and use it in GitHub Desktop.
Save anonymous/b57a08d4797ce412deaf to your computer and use it in GitHub Desktop.
Basic GSAP Tween
<div id="target"></div>
TweenLite.to('#target', 0.3, {
x: 320,
ease: Quad.easeInOut
});
html, body {
background: #f6f6f6;
height: 100%;
}
#target {
position: absolute;
width: 320px;
height: 1000px;
background: #b7d02e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment