gsap-greensock

GSAP Animation Principles

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gsap-greensock" with this command: npx skills add dylantarre/animation-principles/dylantarre-animation-principles-gsap-greensock

GSAP Animation Principles

Implement all 12 Disney animation principles using GSAP's powerful timeline and tween system.

  1. Squash and Stretch

gsap.to(".ball", { scaleX: 1.2, scaleY: 0.8, yoyo: true, repeat: 1, duration: 0.15, ease: "power2.inOut" });

  1. Anticipation

const tl = gsap.timeline(); tl.to(".character", { y: 20, scaleY: 0.9, duration: 0.2 }) // wind up .to(".character", { y: -200, duration: 0.4, ease: "power2.out" }); // action

  1. Staging

gsap.to(".background", { filter: "blur(3px)", opacity: 0.6 }); gsap.to(".hero", { scale: 1.1, zIndex: 10 });

  1. Straight Ahead / Pose to Pose

// Pose to pose with explicit keyframes gsap.to(".sprite", { keyframes: [ { x: 0, y: 0 }, { x: 100, y: -50 }, { x: 200, y: 0 }, { x: 300, y: -30 } ], duration: 1 });

  1. Follow Through and Overlapping Action

const tl = gsap.timeline(); tl.to(".body", { x: 200, duration: 0.5 }) .to(".hair", { x: 200, duration: 0.5 }, "-=0.4") // overlaps .to(".cape", { x: 200, duration: 0.6 }, "-=0.45"); // more drag

  1. Slow In and Slow Out

gsap.to(".element", { x: 300, duration: 0.6, ease: "power2.inOut" // slow in and out }); // Other eases: "power3.in", "power3.out", "elastic.out"

  1. Arc

gsap.to(".ball", { motionPath: { path: [{ x: 0, y: 0 }, { x: 100, y: -100 }, { x: 200, y: 0 }], curviness: 1.5 }, duration: 1 });

  1. Secondary Action

const tl = gsap.timeline(); tl.to(".button", { scale: 1.1, duration: 0.2 }) .to(".icon", { rotation: 15, duration: 0.15 }, "<") // same time .to(".particles", { opacity: 1, stagger: 0.05 }, "<0.1");

  1. Timing

// Fast snap gsap.to(".fast", { x: 100, duration: 0.15 }); // Gentle float gsap.to(".slow", { y: -20, duration: 2, ease: "sine.inOut", yoyo: true, repeat: -1 });

  1. Exaggeration

gsap.to(".element", { scale: 1.5, // exaggerated scale rotation: 720, // multiple spins duration: 0.8, ease: "back.out(2)" // overshoot });

  1. Solid Drawing

gsap.to(".box", { rotationX: 45, rotationY: 30, transformPerspective: 1000, duration: 0.5 });

  1. Appeal

gsap.to(".card", { scale: 1.02, boxShadow: "0 20px 40px rgba(0,0,0,0.2)", duration: 0.3, ease: "power1.out" });

GSAP Timeline Pattern

const masterTL = gsap.timeline({ defaults: { ease: "power2.out" }}); masterTL .add(anticipation()) .add(mainAction()) .add(followThrough());

Key GSAP Features

  • gsap.timeline()

  • Sequence animations

  • ease

  • 30+ built-in easing functions

  • stagger

  • Offset multiple elements

  • motionPath

  • Arc and path animations

  • yoyo / repeat

  • Loop control

  • "<" / "-=0.2"

  • Position parameter for overlap

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

mobile-touch

No summary provided by upstream source.

Repository SourceNeeds Review
General

motion-designer

No summary provided by upstream source.

Repository SourceNeeds Review
General

video-motion-graphics

No summary provided by upstream source.

Repository SourceNeeds Review
General

micro-interactions

No summary provided by upstream source.

Repository SourceNeeds Review