gsap-scrolltrigger-storytelling
Skill này làm gì
Skill này hướng dẫn một AI agent tạo bài trình bày sản phẩm dính và chạy theo cuộn trang bằng GSAP ScrollTrigger. Phù hợp với các nhóm sản phẩm muốn dẫn người xem qua từng tính năng theo từng bước.
Khi nào nên dùng
- ✓Khi bạn muốn dẫn người xem qua một sản phẩm từng bước khi họ cuộn trang.
- ✓Khi ảnh chụp màn hình, bảng và chữ nên chuyển động cùng nhau thành một chuỗi.
- ✓Khi trang sản phẩm cần các phần dính và hiệu ứng hiện ra đồng bộ với cuộn.
Liên kết skill
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/gsap-scrolltrigger-storytelling/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xây một trang sản phẩm chạy theo cuộn, trong đó mỗi bước cuộn hiện một màn hình mới của ứng dụng tôi cùng chữ đồng bộ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng ScrollTrigger để liên kết các timeline hoạt ảnh với vị trí cuộn. Màn hình, nội dung và lớp phủ di chuyển cùng nhau như một chuỗi, với các hiệu ứng hiện ra như bảng trượt vào và các giá trị đếm tăng dần.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
GSAP ScrollTrigger Storytelling Skill
Use When
- Build cinematic sticky product storytelling with GSAP ScrollTrigger, progressive UI reveals, scroll-synced animation, smooth interpolation, and immersive section transitions.
Workflow
Scope
- Apply this when the page should feel like a scroll-driven product story rather than a static marketing layout.
- Use GSAP ScrollTrigger as the main choreography layer for sticky sections, progressive interface reveals, pinned scenes, scrubbed timelines, and immersive transitions between sections.
- Preserve the actual product narrative and interface clarity. The motion should amplify comprehension, not hide basic content behind theatrical effects.
Experience target
- Create sticky product storytelling where each scroll segment reveals a new product state, feature layer, data view, device frame, or workflow step.
- Use scroll-synced animation so copy, UI panels, screenshots, overlays, and background atmosphere move together as one authored sequence.
- Build progressive UI reveals: draw in frames, fade in controls, slide panels into place, count values up, highlight regions, and swap states as the user advances.
- Keep the overall mood cinematic, premium, and immersive with controlled pacing, clean staging, depth, and transitions that feel intentional.
Implementation guidance
- Use GSAP timelines with ScrollTrigger
scrubfor the main scroll narrative and regular tweens only for supporting entrance or hover motion. - Pin long-form story sections with
pin: trueand map each scene to explicit timeline labels so the sequence is easy to tune. - Prefer transform and opacity animation over layout-affecting properties. Use
will-changesparingly on animated elements that actually need it. - Use
gsap.context()in React components and clean it up on unmount so ScrollTriggers are killed correctly. - Refresh ScrollTrigger after images, fonts, or async content load if those assets affect section height or pinned offsets.
- Use
matchMedia()or equivalent breakpoints so desktop sticky choreography can simplify gracefully on smaller screens.
Motion patterns
- Sticky product frame: keep the main artifact pinned while the surrounding narrative updates in measured steps.
- Layer reveal: bring labels, overlays, panels, and product states in one at a time with short offsets and a shared easing language.
- Section handoff: let the current scene scale, mask, blur, or translate into the next section instead of ending abruptly.
- Smooth interpolation: use scrub smoothing, quickSetter/quickTo, or lerped values for pointer-following and scroll-reactive details.
- Cinematic depth: use foreground/background parallax, subtle camera moves, dimming layers, masks, and focus shifts without overwhelming readability.
Tuning knobs
- Pin duration: extend for dense product stories, shorten when the scene has only one or two state changes.
- Scrub feel: use direct scrub for precise technical walkthroughs and eased scrub for a more cinematic product film feel.
- Reveal density: add more micro-reveals for complex UI, reduce them for narrative sections where copy needs to carry the moment.
- Transition intensity: keep high-impact transitions reserved for section handoffs, not every small content change.
Avoid
- Triggering unrelated animations on every scroll tick without a clear story beat.
- Using sticky/pinned sections that trap the reader for too long or make the page feel broken.
- Animating width, height, top, left, or layout-heavy properties during scrubbed scenes when transforms can do the job.
- Letting cinematic effects reduce text contrast, cover CTAs, or obscure the product UI the section is meant to explain.
- Leaving ScrollTriggers alive after component unmounts or route changes.
Câu hỏi thường gặp
Có che giấu thông tin sản phẩm không?
Không. Skill nói chuyển động nên giúp người ta hiểu sản phẩm, chứ không giấu nội dung cơ bản sau hiệu ứng.
Công cụ nào được dùng?
GSAP cùng với plugin ScrollTrigger của nó.
Có thể đếm số tăng dần không?
Có. Đếm giá trị tăng dần là một trong các ví dụ hiện dần mà skill liệt kê.
Chi tiết
Mô tả gốc của tác giả
Build cinematic sticky product storytelling with GSAP ScrollTrigger, progressive UI reveals, scroll-synced animation, smooth interpolation, and immersive section transitions.
repo: MengTo/Skills
Độ phổ biến
- Sao GitHub
- 7.2k
- Vị trí xếp hạng
- #13438
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-cloth-material
7.2kGiúp agent của bạn tạo vải dệt 3D trông thật trong Three.js, với sợi dệt, ánh bóng nhẹ, nếp gấp tự nhiên, viền gấu và đường may.
3d-falling-leaves
7.2kGiúp agent của bạn thêm lá rơi chân thực vào cảnh 3D, với lá xoay tròn, trôi theo gió và được tái sử dụng khi máy quay di chuyển.
3d-four-seasons
7.2kGiúp agent của bạn thêm diện mạo xuân, hạ, thu, đông vào cảnh 3D, thay đổi cây cối, ánh sáng, bầu trời và tuyết mà không cần dựng lại cảnh.
3d-high-poly-models
7.2kGiúp agent của bạn dựng mô hình 3D chi tiết với hình dạng mượt và cạnh trông thật, rồi tạo các phiên bản nhẹ hơn chạy tốt trên web.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.