Basic Tweening: Free GreenSock Tutorial
Master CSS animations with GreenSock's powerful tweening library
GreenSock Animation Platform Overview
GSAP Architecture Benefits
Modular Loading
Load only the files you need to keep file size small. Scale up to TweenMax for convenience when projects require more features.
Lightweight Core
TweenLite provides full-featured animation capabilities while remaining relatively lightweight and handling any object property.
Universal Compatibility
Animates just about any property of any object with cross-browser support and automatic vendor prefix handling.
Required GSAP Components Setup
Includes basic easing equations like Power0-4, Linear, Quad, Cubic
Enables animation of CSS properties, transforms, colors, and opacity
Provides Elastic, SlowMo, Bounce, SteppedEase, RoughEase, and more
TweenLite.to() Method Structure
Define Target
Specify the object or objects being animated - the element you want to tween
Set Duration
Determine how long the animation runs in seconds by default
Configure Properties
Create JavaScript object with property-value pairs plus special properties like eases and callbacks
Observe the smooth 2-second fade transition as the icon gracefully disappears. This demonstrates GSAP's superior interpolation algorithms compared to basic CSS transitions.

Keep the browser tab open for efficient testing—simply refresh the page to replay animations as you develop.
This seamless workflow of code-save-refresh accelerates animation development and helps you achieve pixel-perfect timing.
To tween positional properties like left, top, or right, the target element MUST have a CSS position property set to absolute, relative, or fixed.
GSAP vs CSS Transforms
Use GreenSock's Ease Visualizer at greensock.com/ease-visualizer to preview different easing options and get code snippets with configurable parameters.
Key Takeaways


