gsap-fundamentals
Skill11 starsChanged 12 days agoMITView on GitHub
Use when authoring or refactoring GSAP tweens, timelines, staggered sequences, reusable animation functions or component-scoped animation lifecycles.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Bbeierle12/Skill-MCP-Claudetheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Bbeierle12/Skill-MCP-Claude★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- accessibility-automationSkill
- accessibility-reviewSkill
- accessible-componentsSkill
- accessible-motionSkill
- animation-performanceSkill
- anti-slop-uiSkill
- api-securitySkill
- authentication-sessionsSkill
- authorization-access-controlSkill
- component-engineeringSkill
- core-web-vitalsSkill
- design-directionSkill
- design-system-architectureSkill
- document-head-seoSkill
- font-performanceSkill
- forms-and-validationSkill
- frontend-architectureSkill
- icon-engineeringSkill
- image-asset-optimizationSkill
- independent-reviewSkill
- interactive-storytellingSkill
- javascript-performanceSkill
- keyboard-focusSkill
- modern-cssSkill
- motion-design-systemsSkill
- network-cachingSkill
- performance-auditingSkill
- performance-testingSkill
- premium-landing-pagesSkill
- quickstart-onboardingSkill
- rendering-performanceSkill
- responsive-engineeringSkill
- screen-reader-testingSkill
- scrolltrigger-experiencesSkill
- secrets-configurationSkill
- secure-application-designSkill
- secure-input-outputSkill
- security-reviewSkill
- security-testingSkill
- semantic-accessibilitySkill
- visual-design-reviewSkill
- visual-reference-analysisSkill
- wcag-auditingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. About 0 are common, 28 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈28
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Create intentional, deterministic animation sequences with clear ownership, predictable timing and reliable cleanup.
- Distinctive: line 16
Check whether required plugins are installed and registered.
- Distinctive: line 17
Follow the project's existing import and plugin-registration conventions.
- Distinctive: line 18
Do not assume a plugin is available merely because it appears in an example.
- Distinctive: line 20
Use CSS transitions or keyframes for simple state changes that do not need orchestration.
- Distinctive: line 21
Use gsap.to(), gsap.from() or gsap.fromTo() for focused tween behavior.
- Distinctive: line 22
Use a timeline when multiple animations need sequencing, overlap, labels, shared controls or coordinated playback.
- Distinctive: line 23
Use stagger only when the elements form a meaningful group.
- Distinctive: line 26
Use labels and position parameters to communicate sequence relationships.
- Distinctive: line 27
Prefer timeline defaults for repeated duration/ease values.
- Distinctive: line 28
Keep durations, delays and stagger values consistent with the motion system.
- Distinctive: line 29
Avoid arbitrary delays that hide sequencing bugs.
- Distinctive: line 33
Use gsap.context() for grouped animations and call revert() during teardown.
- Distinctive: line 34
Use gsap.matchMedia() when responsive or preference-based conditions change the animation setup.
- Distinctive: line 35
Remove event listeners, observers and timers created outside GSAP's context.
- Distinctive: line 37
Avoid animating layout-affecting properties continuously when transform or opacity can achieve the same result.
- Distinctive: line 38
Do not assume an element's initial inline style is the correct reset state.
- Distinctive: line 40
Avoid global selectors that can animate another instance of the same component.
- Distinctive: line 42
Test first render, replay, interruption, route changes and component teardown.
- Distinctive: line 44
Check that animation does not block interaction or leave elements invisible.
- Distinctive: line 49
Keep animation code near the component or interaction it owns.
- Distinctive: line 51
Prefer explicit refs or scoped selectors over broad document-wide selectors.
- Distinctive: line 52
Use gsap.set() for deliberate setup states, not as a substitute for understanding the underlying CSS.
- Distinctive: line 53
Keep timelines controllable and avoid deeply nested callbacks when labels and timeline composition are clearer.
- Distinctive: line 54
Do not create an animation merely to make an interface appear more sophisticated.
- Very specific: line 73
Use gsap.context(callback, scope) to collect animations created for one component or page region, then call revert() when that owner is …
- Very specific: line 74
Use gsap.matchMedia() when setup changes with media conditions.
- Distinctive: line 75
Keep plugin registration at module or application initialization, not in render or mount callbacks that repeat.
- Distinctive: line 76
Prefer timelines with labels and position parameters over chains of independent delays.
- Very specific: line 77
When multiple from()/fromTo() tweens target the same property, review immediateRender behavior so a later tween does not overwrite an …
- Very specific: line 78
Use overwrite deliberately for competing interactions.
- Distinctive: line 79
Do not assume transform or opacity is automatically compositor-only or free.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GSAP Fundamentals
Objective
Create intentional, deterministic animation sequences with clear ownership, predictable timing and reliable cleanup. Use GSAP only when it adds value beyond CSS transitions or keyframes.
Workflow
- Inspect the project
- Confirm the installed GSAP version, package manager, bundler and framework integration.
- Check whether required plugins are installed and registered.
- Follow the project's existing import and plugin-registration conventions.
- Do not assume a plugin is available merely because it appears in an example.
- Choose the simplest primitive
- Use CSS transitions or keyframes for simple state changes that do not need orchestration.
- Use gsap.to(), gsap.from() or gsap.fromTo() for focused tween behavior.
- Use a timeline when multiple animations need sequencing, overlap, labels, shared controls or coordinated playback.
- Use stagger only when the elements form a meaningful group; avoid animating every child by default.
- Design the timeline
- Establish a clear visual start and end state.
- Use labels and position parameters to communicate sequence relationships.
- Prefer timeline defaults for repeated duration/ease values.
- Keep durations, delays and stagger values consistent with the motion system.
- Avoid arbitrary delays that hide sequencing bugs.
- Scope and clean up
- Scope selector text to the component or page instance.
- In component frameworks, create animations after the relevant elements exist and clean them up on unmount.
- Use gsap.context() for grouped animations and call revert() during teardown.
- Use gsap.matchMedia() when responsive or preference-based conditions change the animation setup; its recorded GSAP work is reverted when conditions stop matching.
- Remove event listeners, observers and timers created outside GSAP's context.
- Make behavior robust
- Avoid animating layout-affecting properties continuously when transform or opacity can achieve the same result.
- Do not assume an element's initial inline style is the correct reset state.
- Handle repeated triggers and interrupted timelines deliberately.
- Avoid global selectors that can animate another instance of the same component.
- Verify
- Test first render, replay, interruption, route changes and component teardown.
- Resize across relevant breakpoints and change the reduced-motion preference.
- Check that animation does not block interaction or leave elements invisible.
- Confirm no duplicate timelines or ScrollTriggers accumulate after remounts.
Implementation guidance
- Keep animation code near the component or interaction it owns.
- Separate animation setup from business logic.
- Prefer explicit refs or scoped selectors over broad document-wide selectors.
- Use gsap.set() for deliberate setup states, not as a substitute for understanding the underlying CSS.
- Keep timelines controllable and avoid deeply nested callbacks when labels and timeline composition are clearer.
- Do not create an animation merely to make an interface appear more sophisticated.
Common failure modes
- Creating animations during render.
- Forgetting revert() or equivalent teardown.
- Registering plugins repeatedly in component render paths.
- Using global selectors in repeated components.
- Leaving from() animations in a hidden or transformed state after an interrupted lifecycle.
- Using a timeline for a simple CSS hover state.
- Assuming zero duration alone makes a complex interaction accessible.
Completion criteria
The animation has a clear purpose, correct timing, scoped targets, lifecycle cleanup, responsive behavior and a verified non-animated or reduced-motion experience.
Lifecycle and API precision
- Use
gsap.context(callback, scope)to collect animations created for one component or page region, then callrevert()when that owner is removed. - Use
gsap.matchMedia()when setup changes with media conditions. It creates and manages its own context for each matching condition; call the returned object'srevert()during teardown rather than redundantly wrapping the same setup in another context. - Keep plugin registration at module or application initialization, not in render or mount callbacks that repeat.
- Prefer timelines with labels and position parameters over chains of independent delays. Store the timeline when controls need to pause, reverse, seek or kill it.
- When multiple
from()/fromTo()tweens target the same property, reviewimmediateRenderbehavior so a later tween does not overwrite an earlier start state. - Use
overwritedeliberately for competing interactions; do not use it to conceal unclear animation ownership. - Do not assume transform or opacity is automatically compositor-only or free. Profile the rendered result on representative devices.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

