본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)40k · #7233

gsap-framer-scroll-animation

하는 일

이 도구는 사용자가 페이지를 아래로 스크롤하면서 일어나는 웹사이트 애니메이션을 만들도록 돕습니다. 페이지에서의 위치에 따라 요소가 나타나거나, 크기가 변하거나, 흥미롭게 움직이도록 만들 수 있습니다.

사용하는 경우

  • ✓사용자가 스크롤할 때 요소가 부드럽게 나타나게 하고 싶을 때.
  • ✓스크롤하는 동안 이미지에 '확대' 또는 '흐림' 효과를 주고 싶을 때.
  • ✓사용자가 지나갈 때 페이지 섹션 전체가 제자리에 '고정'되도록 하고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/gsap-framer-scroll-animation/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/gsap-framer-scroll-animation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제가 스크롤하는 동안 텍스트 요소가 사라졌다가 다시 나타나게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

GSAP와 Framer Motion 두 인기 라이브러리 중 하나를 고르고, 그 명령을 사용해 페이지 스크롤과 관련해 애니메이션이 어떻게, 언제 일어날지 지정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

GSAP & Framer Motion — Scroll Animations Skill

Production-grade scroll animations with GitHub Copilot prompts, ready-to-use code recipes, and deep API references.

Design Companion: This skill provides the technical implementation for scroll-driven motion. For the creative philosophy, design principles, and premium aesthetics that should guide how and when to animate, always cross-reference the premium-frontend-ui skill. Together they form a complete approach: premium-frontend-ui decides the what and why; this skill delivers the how.

Quick Library Selector

Need Use
Vanilla JS, Webflow, Vue GSAP
Pinning, horizontal scroll, complex timelines GSAP
React / Next.js, declarative style Framer Motion
whileInView entrance animations Framer Motion
Both in same Next.js app See notes in references

Read the relevant reference file for full recipes and Copilot prompts:

  • GSAP → references/gsap.md — ScrollTrigger API, all recipes, React integration
  • Framer Motion → references/framer.md — useScroll, useTransform, all recipes

Setup (Always Do First)

GSAP

npm install gsap
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger); // MUST call before any ScrollTrigger usage

Framer Motion (Motion v12, 2025)

npm install motion   # new package name since mid-2025
# or: npm install framer-motion  — still works, same API
import { motion, useScroll, useTransform, useSpring } from 'motion/react';
// legacy: import { motion } from 'framer-motion'  — also valid

Workflow

  1. Interpret the user's intent to identify if GSAP or Framer Motion is the best fit.
  2. Read the relevant reference document in references/ for detailed APIs and patterns.
  3. Suggest the required package installation if not already present.
  4. Implement the scaffold for the animation structure, adhering to the requested format (React components, hook requirements, or vanilla JS).
  5. Apply the correct tools (scrolling vs in-view elements) ensuring accessibility options are present and hooks don't cause infinite re-renders.

The 5 Most Common Scroll Patterns

Quick reference — full recipes with Copilot prompts are in the reference files.

1. Fade-in on enter (GSAP)

gsap.from('.card', {
  opacity: 0, y: 50, stagger: 0.15, duration: 0.8,
  scrollTrigger: { trigger: '.card', start: 'top 85%' }
});

2. Fade-in on enter (Framer Motion)

<motion.div
  initial={{ opacity: 0, y: 40 }}
  whileInView={{ opacity: 1, y: 0 }}
  viewport={{ once: true, margin: '-80px' }}
  transition={{ duration: 0.6 }}
/>

3. Scrub / scroll-linked (GSAP)

gsap.to('.hero-img', {
  scale: 1.3, opacity: 0, ease: 'none',
  scrollTrigger: { trigger: '.hero', start: 'top top', end: 'bottom top', scrub: true }
});

4. Scroll-linked (Framer Motion)

const { scrollYProgress } = useScroll({ target: ref, offset: ['start end', 'end start'] });
const y = useTransform(scrollYProgress, [0, 1], [0, -100]);
return <motion.div style={{ y }} />;

5. Pinned timeline (GSAP)

const tl = gsap.timeline({
  scrollTrigger: { trigger: '.section', pin: true, scrub: 1, start: 'top top', end: '+=200%' }
});
tl.from('.title', { opacity: 0, y: 60 }).from('.img', { scale: 0.85 });

Critical Rules (Apply Always)

  • GSAP: always call gsap.registerPlugin(ScrollTrigger) before using it
  • GSAP scrub: always use ease: 'none' — easing feels wrong when scrub is active
  • GSAP React: use useGSAP from @gsap/react, never plain useEffect — it auto-cleans ScrollTriggers
  • GSAP debug: add markers: true during development; remove before production
  • Framer: useTransform output must go into style prop of a motion.* element, not a plain div
  • Framer Next.js: always add 'use client' at top of any file using motion hooks
  • Both: animate only transform and opacity — avoid width, height, box-shadow
  • Accessibility: always check prefers-reduced-motion — see each reference file for patterns
  • Premium polish: follow the premium-frontend-ui skill principles for motion timing, easing curves, and restraint — animation should enhance, never overwhelm

Copilot Prompting Tips

  • Give Copilot the full selector, base image, and scroll range upfront — vague prompts produce vague code

…

자주 묻는 질문

무엇인가 설치해야 하나요?

네, 사용하기 전에 터미널에서 명령을 사용해 GSAP나 Framer Motion 라이브러리를 설치해야 합니다.

어떤 라이브러리를 써야 하나요?

가로 스크롤이나 타임라인 같은 복잡한 애니메이션에는 GSAP를 쓰세요. React/Next.js 구성 요소의 간단한 '등장' 애니메이션에는 Framer Motion을 쓰세요.

움직임에 민감한 사용자가 불편하지 않게 하려면 어떻게 하나요?

'prefers-reduced-motion' 설정을 확인해, 이런 사용자에게는 애니메이션을 끄거나 단순하게 만드는 것이 중요합니다.

상세 정보

작성자의 원본 설명

Use this skill whenever the user wants to build scroll animations, scroll effects, parallax, scroll-triggered reveals, pinned sections, horizontal scroll, text animations, or any motion tied to scroll position — in vanilla JS, React, or Next.js. Covers GSAP ScrollTrigger (pinning, scrubbing, snapping, timelines, horizontal scroll, ScrollSmoother, matchMedia) and Framer Motion / Motion v12 (useScro

repo: github/awesome-copilot

인기도

GitHub 스타
40k
순위
#7233
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬