Gist 0da4d2561e574cd4e3e6b65e215c3939
✓ Published0🌍 Public
Aabernier
Last edited Aug 15, 2016
Created on Aug 15, 2016
This example shows how to build and compose multiple animation timelines using the GSAP (Global Scripting Animation Platform) library. It defines reusable functions, `anim1` and `anim2`, which create their own `TimelineMax` objects and populate them with tweens. The tweens animate properties like `borderWidth` and use `TweenMax.staggerFromTo` to create a staggered effect on a collection of elements, including a `force3D` transformation. The main script then combines these two timelines into a single parent timeline and rescales the total duration.
AI-generated description