跳到正文
Skillpedia
网站与界面(前端)7.2k · #13438

gsap-scrolltrigger-storytelling

它能做什么

这个技能指导 AI 智能体使用 GSAP ScrollTrigger 制作粘性的、由滚动驱动的产品展示。适合希望逐步带领访客了解功能的产品团队。

适用场景

  • ✓当你希望访客随滚动逐步了解产品时。
  • ✓当截图、面板和文字需要作为一个序列一起动起来时。
  • ✓当产品页面需要粘性区块和与滚动同步的显现效果时。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/gsap-scrolltrigger-storytelling/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/gsap-scrolltrigger-storytelling/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我做一个由滚动驱动的产品页面,每滚动一步就显示我的应用的一个新界面,并同步出现文字。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会使用 ScrollTrigger 把动画时间线与滚动位置关联起来。屏幕、文案和浮层作为一个序列一起移动,例如面板滑入、数值逐步增加。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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 scrub for the main scroll narrative and regular tweens only for supporting entrance or hover motion.
  • Pin long-form story sections with pin: true and 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-change sparingly 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.
常见问题

它会隐藏产品信息吗?

不会。该技能强调,动效应帮助人们理解产品,而不是把基本内容隐藏在特效后面。

它使用什么工具?

GSAP 及其 ScrollTrigger 插件。

它能让数字逐步增加吗?

可以。数值逐步增加是该技能列出的渐进式显现示例之一。

详情

作者的原始描述

Build cinematic sticky product storytelling with GSAP ScrollTrigger, progressive UI reveals, scroll-synced animation, smooth interpolation, and immersive section transitions.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13438
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能