gsap
Build high-performance web animations with GSAP (GreenSock Animation Platform) — tweens, timelines, ScrollTrigger, Flip, MorphSVG, SplitText, and physics. Use…
от siddu1004★ 43 звезды на GitHub
Установить gsap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GSAP (GreenSock Animation Platform)
High-performance, battle-tested JavaScript animation library for modern web applications.
Core Concepts
1. Basic Tweens
import gsap from 'gsap';
// Move to target state
gsap.to('.card', {
x: 100,
opacity: 1,
duration: 0.8,
ease: 'power2.out'
});
// Animate from initial state
gsap.from('.hero-title', {
y: 50,
opacity: 0,
duration: 1,
ease: 'back.out(1.7)'
});
2. Timelines (Choreographed Sequences)
Avoid setTimeout or nested callbacks. Use Timelines for sequenced animations:
const tl = gsap.timeline({ defaults: { ease: 'power3.out', duration: 0.6 } });
tl.from('.badge', { scale: 0, opacity: 0 })
.from('.heading', { y: 30, opacity: 0 }, '-=0.3')
.from('.description', { y: 20, opacity: 0 }, '-=0.2')
.from('.cta-button', { scale: 0.9, opacity: 0 }, '-=0.2');
3. ScrollTrigger
import { ScrollTrigger } from 'gsap/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
gsap.to('.parallax-layer', {
yPercent: -50,
ease: 'none',
scrollTrigger: {
trigger: '.section',
start: 'top bottom',
end: 'bottom top',
scrub: true
}
});
4. Hardware Acceleration & Best Practices
- Animate
transform(x,y,scale,rotation) andopacityrather thantop,left,width, orheight. - Use
gsap.context()in React (useLayoutEffectoruseEffect) to ensure clean teardown and prevent memory leaks. - Leverage
ScrollTrigger.refresh()after dynamic DOM or image loads.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gsap?
Build high-performance web animations with GSAP (GreenSock Animation Platform) — tweens, timelines, ScrollTrigger, Flip, MorphSVG, SplitText, and physics. Use when implementing fluid transitions, scroll animations, SVG effects, or complex interactive motion.
Как установить скилл gsap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gsap запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…