Skill library

Agent skill Web motion

GSAP Framer Scroll Animation

Design or implement effects that respond to scrolling on a web page.

  • Scroll animation
  • Framer Motion
  • GSAP

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add github/awesome-copilot --skill gsap-framer-scroll-animation --agent claude-code --yes

Check this file in your project.claude/skills/gsap-framer-scroll-animation/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add github/awesome-copilot --skill gsap-framer-scroll-animation

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A React page with ordinary vertical scroll and a compatible current motion dependency. The installed Skill ships references/framer.md and references/gsap.md for the two library paths.

View operation manual

What this skill helps with

  • Design or implement effects that respond to scrolling on a web page.

Good for

  • Scroll-driven storytelling
Publisher
GitHub Awesome Copilot · Utkarsh Patrikar
Control points
useScroll({ target, offset }) · useTransform · motion style.y
Result
A reversible section-relative parallax mapping and a readable reduced-motion fallback.
Skill name
gsap-framer-scroll-animation

Common pitfall

Avoid this prompt

Read the entire page’s scroll height and animate a text block with that progress.

Adding or removing an earlier section changes timing, and moving reading content makes it harder to follow.

Use these steps

  1. Inspect the original target
  2. Apply the documented technique
  3. Verify the result in the project

Project walkthrough

Map one section’s scroll progress to an original illustration while leaving its reading content stable.

Map one section’s scroll progress to an original illustration while leaving its reading content stable.

  1. Inspect the original target

    Inspect the original target

    Prompt · Step 1
    Use GSAP & Framer Motion Scroll Animation on [my illustrated reading chapter]. Read references/framer.md from the installed Skill because this target is a React section with no pinning. Identify its stable section ref, independent art target, and start and end positions. If Motion is missing, install motion using the app’s package manager.
  2. Apply the documented technique

    Apply the documented technique

    Prompt · Step 2
    Import useScroll, useTransform, and motion from motion/react. Attach the ref to the stationary reading section and use offset ["start end", "end start"]. Map progress [0, 1] to y [0, -64] for the decorative motion element only. Keep the content layout unchanged and use y: 0 under reduced motion.
  3. Verify the result in the project

    The illustration follows the section’s repeatable position and text remains stationary and readable.

    • The illustration follows the section’s repeatable position and text remains stationary and readable.
    Prompt · Step 3
    Scroll the original section through entry, midpoint, and exit, then return to its midpoint. Compare the illustration’s transform and verify the middle pose is repeatable. Test a new reduced-motion load and a narrow viewport; the text must remain readable and the artwork must keep its baseline position in reduced motion.

Implementation lookup

Find the documented controls and a way to test the implementation.

Check the values and controlsInputs
Command or reference
useScroll({ target, offset }) · useTransform · motion style.y
Examples
The illustration follows the section’s repeatable position and text remains stationary and readable.

FAQ

When should I open the GSAP reference instead?

Use the Skill’s GSAP reference when the project uses ScrollTrigger for pinning or a complex scrubbed timeline. The current walkthrough uses Motion’s direct hook mapping.

Where are the examples?

Start with the installed SKILL.md and open any linked rule or reference file listed by this walkthrough.