MotionLightweight
Timeline choreography (GSAP)
Many small animations sequenced on one clock.
Sequencing many small animations on one clock: this starts at 0.3 seconds, that overlaps by 0.1, these appear one after another. GSAP is the standard tool. This is how intros and stories get their rhythm.
- Breaks when
- timelines fight React re-renders
- Also called
- GSAP, gsap.timeline, Theatre.js
Prompts
Hero intro with a deliberate order
A GSAP timeline for a hero: 1) headline words rise 24 px and fade in, stagger 0.06 s, 0.8 s, power3.out; 2) at "−0.4" the product image scales from 0.94 to 1 with a 1.2 s power2.out; 3) at "−0.6" the three feature chips slide in from y = 12, stagger 0.08; 4) at "+0.1" the CTA fades and its underline draws from scaleX 0. Total under 1.8 s. Build it paused, play on font load, and expose tl.progress() to a scrub slider for review. Respect prefers-reduced-motion by tl.progress(1).
Timeline drives a Three.js camera
One GSAP timeline that tweens a Three.js camera through four stored positions and targets (each 1.4 s, power2.inOut, overlapping by 0.3 s) while tweening a uniform on a material and an HTML caption’s opacity in sync. Use a single onUpdate to call camera.lookAt with a tweened target vector. Add tl.timeScale control and a keyboard scrub (← →).
Label-based choreography
Structure a long GSAP timeline with labels ("intro", "reveal", "settle") and let the UI jump between them with tl.tweenTo(label). Show how to add a tween relative to a label ("reveal+=0.2") and how to reverse only one section. Include a debug overlay listing labels and the current time.Related
Resources · 3
- GSAP ScrollTriggergreensocksite · code · demoAug 5, 2026
- Theatre.jsGUI keyframes for R3F cameras.theatre_jssite · code · demoJun 28, 2026
- anime.jsjuliangarniersite · code · demoApr 15, 2026