aditya-deokar/gsap-motion-engineer/gsap-core

Claude Code and agent skill by aditya-deokar/gsap-motion-engineer

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Comprehensive GSAP core engine skill — gsap.to(), gsap.from(), gsap.fromTo(), gsap.set(), easings catalog, advanced staggers, gsap.matchMedia(), defaults, and natural language intent analysis. Use when creating or refining tweens, easing curves, entrance animations, responsive breakpoints, accessible motion, or foundational GSAP architecture.

Install

npx vskill@latest install aditya-deokar/gsap-motion-engineer/gsap-core

SKILL.md

The same SKILL.md was published earlier as aditya-deokar/gsap-motion-engineer/gsap-core.

GSAP Core Engine

When to Use This Skill

Apply this skill when creating or reviewing fundamental GSAP animations:

  • Creating single tweens (gsap.to, gsap.from, gsap.fromTo, gsap.set).
  • Choosing or tuning easing curves for organic, springy, or snapping feels.
  • Orchestrating multi-element staggered entrances (stagger object syntax).
  • Implementing responsive animations and accessibility controls via gsap.matchMedia().
  • Setting global animation defaults.

🎯 Natural Language Intent Classification

When given an animation prompt, check these criteria to formulate the optimal tween parameters:

User Prompt
├── "Fade in / slide in / reveal when loaded" ──> gsap.from() or gsap.fromTo() with autoAlpha
├── "Move to / change state / interactive response" ──> gsap.to()
├── "Instant state setup / reset before animating" ──> gsap.set()
├── "Sequence of multiple items (cards, list, grid)" ──> stagger object with from: "start" | "center" | "random"
└── "Desktop vs mobile or prefers-reduced-motion" ──> gsap.matchMedia()

Core Methods Deep Dive

1. gsap.to(targets, vars)

Animates targets from their current computed styles to destination values.

javascript
gsap.to(".card", {
x: 100,
rotationY: 15,
duration: 1.2,
ease: "power3.out",
force3D: true,
onComplete: () => console.log("Card moved!"),
});
2. gsap.from(targets, vars)

Animates targets from specified initial values to their natural CSS state. Perfect for page-load and scroll entrances.

javascript
// Best practice: Use autoAlpha to prevent Flash of Unstyled Content (FOUC)
gsap.from(".hero-headline", {
y: 80,
autoAlpha: 0,
duration: 1.4,
ease: "power4.out",
});
3. gsap.fromTo(targets, fromVars, toVars)

Explicit control over both starting and ending values. Essential when dynamic rerenders or user interruptions might leave the element in an indeterminate state.

javascript
gsap.fromTo(".modal-backdrop",
{ autoAlpha: 0, backdropFilter: "blur(0px)" },
{ autoAlpha: 1, backdropFilter: "blur(12px)", duration: 0.6, ease: "power2.out" }
);
4. gsap.set(targets, vars)

Instantly applies values without animating (duration 0). Used for initializing positions or resetting styles.

javascript
// Initialize state before animation
gsap.set(".dropdown-menu", { autoAlpha: 0, y: -20, scale: 0.95, transformOrigin: "top center" });
// Complete property reset
gsap.set(".animated-item", { clearProps: "all" });
5. gsap.delayedCall(delay, callback, params)

High-precision timer synchronized with GSAP's internal ticker (immune to tab throttling issues that affect setTimeout).

javascript
const timer = gsap.delayedCall(1.5, showToast, ["Saved successfully!"]);
// To cancel:
timer.kill();

🎨 Easing Catalog & Physics Selection

The choice of ease dictates the emotion of the motion:

EasingCharacter / FeelIdeal Use Cases
"power1.out" / "power2.out"Gentle, subtle decelerationUI menus, dropdowns, tooltips
"power3.out" / "power4.out"Modern, sleek agency decelerationHero sections, card entrances, page reveals
"expo.out"Dramatic snap with long, ultra-smooth tailHigh-end luxury typography reveals, bold entrances
"back.out(1.7)"Overshoots destination then snaps backButtons, badges, notification icons, popups
"elastic.out(1, 0.3)"Physical rubber-band jelly bouncePlayful micro-interactions, pull-to-refresh indicators
"circ.out"Sharp, abrupt stopHigh-speed technical interfaces, cyber/gaming UIs
"none" (linear)Constant speedEndless rotations, ticker marquees, scrubbed parallax
javascript
// Example: Bouncy pop-in
gsap.from(".badge", {
scale: 0,
autoAlpha: 0,
duration: 0.8,
ease: "back.out(1.7)",
});
// Example: Rubber-band alert
gsap.from(".alert-box", {
scale: 0.3,
autoAlpha: 0,
duration: 1.2,
ease: "elastic.out(1, 0.3)",
});

⚡ Stagger Choreography (Grid & Multi-Element)

Never animate groups with identical timing. Use stagger to create natural ripples:

javascript
gsap.from(".grid-item", {
y: 60,
autoAlpha: 0,
scale: 0.9,
duration: 0.8,
ease: "power3.out",
stagger: {
amount: 0.6, // Total time distributed among all items (independent of count)
from: "center", // "start" | "center" | "end" | "edges" | "random" | index [0]
grid: [4, 3], // Automatically calculates 2D distance for rows/cols!
axis: "y", // Restrict stagger calculation along "x" or "y"
ease: "power2.inOut" // Easing curve for the distribution itself
}
});

📱 Responsive & Accessible Motion with gsap.matchMedia()

gsap.matchMedia() is the gold standard for handling screen sizes and respecting user vestibular disorders (prefers-reduced-motion):

javascript
const mm = gsap.matchMedia();
mm.add({
// Desktop
isDesktop: "(min-width: 1024px)",
// Mobile / Tablet
isMobile: "(max-width: 1023px)",
// Accessibility check
reduceMotion: "(prefers-reduced-motion: reduce)",
}, (context) => {
const { isDesktop, isMobile, reduceMotion } = context.conditions;
if (reduceMotion) {
// Instant or gentle fade for accessibility compliance
gsap.from(".hero-content", { autoAlpha: 0, duration: 0.3 });
return;
}
if (isDesktop) {
// Full cinematic experience for desktop
gsap.from(".hero-title", { y: 100, autoAlpha: 0, duration: 1.4, ease: "power4.out" });
gsap.from(".hero-3d-model", { scale: 0.8, autoAlpha: 0, duration: 2, ease: "power2.out" });
}
if (isMobile) {
// Lightweight, compact motion for mobile batteries and smaller viewports
gsap.from(".hero-title", { y: 40, autoAlpha: 0, duration: 0.8, ease: "power2.out" });
}
});
// Auto-cleanup on unmount / teardown
// mm.revert();

🔧 Global Engine Defaults

Set sensible global defaults at app root to reduce boilerplate:

javascript
gsap.defaults({
duration: 1,
ease: "power3.out",
force3D: true, // Guarantees GPU acceleration layers across all tweens
});

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/aditya-deokar/gsap-motion-engineer/gsap-core/badge)](https://verified-skill.com/skills/aditya-deokar/gsap-motion-engineer/gsap-core)

Something wrong with this skill or its page? Tell us.