Communitygithub.com

GSAP

GSAP(GreenSock Animation Platform)을 사용하여 복잡한 타임라인, 스크롤 기반 애니메이션, SVG 모핑, 텍스트 효과, 물리 기반 모션을 구현합니다. CSS 애니메이션으로는 구현이 어려운 고성능 웹 애니메이션 제작에 사용됩니다.

GSAP란 무엇인가요?

이 스킬은 GSAP(GreenSock Animation Platform)을 활용한 고급 웹 애니메이션 제작을 위한 AI 에이전트 스킬입니다. GSAP는 Apple, Google, Nike 등에서 사용하는 가장 강력한 웹 애니메이션 라이브러리로, 복잡한 타임라인, 스크롤 트리거 애니메이션, SVG 모핑, 텍스트 효과, 물리 기반 모션을 지원합니다. 주요 기능으로 `gsap.to()`, `gsap.from()` 기본 애니메이션, `gsap.timeline()`을 이용한 순차적 애니메이션, `ScrollTrigger` 플러그인을 통한 스크롤 기반 애니메이션, React 통합을 위한 `useGSAP` 훅이 포함되어 있습니다. 모든 웹 플랫폼에서 사용 가능하며, React, Next.js와 함께 사용할 때 특히 유용합니다. 성능 면에서 CSS 애니메이션보다 뛰어나며 requestAnimationFrame 기반으로 동작하여 복잡한 시퀀스에서도 부드러운 성능을 제공합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/gsap

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

GSAP은(는) 무엇을 하나요?

개요

GSAP(GreenSock Animation Platform)은 가장 강력한 웹 애니메이션 라이브러리입니다. 복잡한 타임라인, 스크롤 기반 애니메이션, SVG 모핑, 텍스트 효과, 물리 기반 모션을 처리합니다. Apple, Google, Nike에서 랜딩 페이지 및 제품 쇼케이스에 사용합니다. 대부분의 용도에 무료로 사용할 수 있습니다.

지침

1단계: 기본 애니메이션

import gsap from 'gsap'

// 대상으로 애니메이션
gsap.to('.hero-title', { opacity: 1, y: 0, duration: 1, ease: 'power3.out' })

// 대상에서 애니메이션
gsap.from('.card', { opacity: 0, y: 50, duration: 0.8, stagger: 0.15 })

// 즉시 설정
gsap.set('.hidden-element', { opacity: 0, y: 20 })

2단계: 타임라인

// 순차 애니메이션 — 순서대로 재생
const tl = gsap.timeline({ defaults: { duration: 0.6, ease: 'power2.out' } })

tl.from('.logo', { scale: 0, rotation: -180 })
  .from('.nav-link', { opacity: 0, y: -20, stagger: 0.1 }, '-=0.3')  // 0.3초 겹치기
  .from('.hero-text', { opacity: 0, x: -50 })
  .from('.cta-button', { opacity: 0, scale: 0.8 }, '<')               // 이전과 동시에 시작

// 제어
tl.play()
tl.reverse()
tl.pause()
tl.seek(1.5)  // 1.5초로 이동

3단계: ScrollTrigger

import { ScrollTrigger } from 'gsap/ScrollTrigger'
gsap.registerPlugin(ScrollTrigger)

// 스크롤하여 뷰에 들어올 때 애니메이션
gsap.from('.feature-section', {
  scrollTrigger: {
    trigger: '.feature-section',
    start: 'top 80%',        // 요소의 상단이 뷰포트의 80%에 도달했을 때 트리거
    end: 'bottom 20%',
    toggleActions: 'play none none reverse',  // onEnter, onLeave, onEnterBack, onLeaveBack
  },
  opacity: 0,
  y: 100,
  duration: 1,
})

// 스크롤 중 섹션 고정
gsap.to('.horizontal-section', {
  x: () => -(document.querySelector('.horizontal-section').scrollWidth - window.innerWidth),
  scrollTrigger: {
    trigger: '.horizontal-wrapper',
    pin: true,
    scrub: 1,                // 부드러운 스크러빙 (1초 지연)
    end: () => '+=' + document.querySelector('.horizontal-section').scrollWidth,
  },
})

4단계: React 통합

import { useRef } from 'react'
import { useGSAP } from '@gsap/react'
import gsap from 'gsap'

function AnimatedSection() {
  const container = useRef(null)

  useGSAP(() => {
    gsap.from('.card', {
      opacity: 0, y: 40, stagger: 0.1, duration: 0.6,
      scrollTrigger: { trigger: container.current, start: 'top 80%' },
    })
  }, { scope: container })

  return (
    <div ref={container}>
      <div className="card">Card 1</div>
      <div className="card">Card 2</div>
      <div className="card">Card 3</div>
    </div>
  )
}

가이드라인

  • GSAP는 공개 웹사이트에 무료로 사용할 수 있습니다. 상업용 플러그인(MorphSVG, SplitText)은 라이선스가 필요합니다.
  • React에서는 useGSAP 훅을 사용하세요. 언마운트 시 자동으로 정리(cleanup)를 처리합니다.
  • scrub과 함께 사용하는 ScrollTrigger는 스크롤 연결 애니메이션(패럴랙스, 진행률)을 만듭니다.
  • stagger는 여러 요소를 순차적으로 애니메이션 처리합니다. 수동 지연보다 깔끔합니다.
  • GSAP는 복잡한 시퀀스에서 CSS 애니메이션보다 성능이 뛰어납니다. requestAnimationFrame 기반입니다.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

TerminalSkills/skills

>- Lovable (formerly GPT Engineer) is a browser-based AI app builder that turns a natural-language description into a working full-stack web app with a built-in backend, authentication, database and one-click publishing. Use when the user wants to prototype or ship a web app with Lovable, write effective Lovable prompts, connect Supabase or GitHub, review generated security rules, or move a Lovable project into their own editor.

관련 스킬