gsap-scrolltrigger
Build Scroll Animations with GSAP ScrollTrigger
Scroll-driven interfaces can break when triggers, pinning, refresh order, or cleanup are configured incorrectly. This skill provides focused GSAP ScrollTrigger implementation guidance.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "gsap-scrolltrigger" from https://skillstore.io/skills/greensock-gsap-scrolltrigger.md and its manifest at https://skillstore.io/api/skills/greensock-gsap-scrolltrigger/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“gsap-scrolltrigger”。 Make feature cards fade upward as they enter the viewport.
预期结果:
- Use ScrollTrigger.batch for the card selector.
- Animate each delivered batch with opacity, vertical movement, and a short stagger.
- Set an entry threshold near the lower viewport and define reverse behavior explicitly.
正在使用“gsap-scrolltrigger”。 Pin a chapter and connect its timeline to scrolling.
预期结果:
- Attach one ScrollTrigger to the parent timeline.
- Use top alignment for the start and a measured scroll distance for the end.
- Enable numeric scrub and pin the chapter wrapper.
- Refresh after content or font changes affect layout.
正在使用“gsap-scrolltrigger”。 Stop ScrollTrigger instances after a React route change.
预期结果:
- Scope animation creation to the component.
- Use the GSAP React hook or a GSAP context for cleanup.
- Revert the scope during unmount and refresh after the next route layout settles.
安全审计
安全All 62 static findings are false positives caused by Markdown formatting, JavaScript API examples, official GSAP documentation links, and benign API identifiers. No executable shell commands, system reconnaissance, prompt injection, credential access, or data exfiltration behavior was found.
风险因素
⚙️ 外部命令 (50)
🌐 网络访问 (4)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/greensock-gsap-scrolltrigger/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/greensock-gsap-scrolltrigger?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/greensock-gsap-scrolltrigger?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/greensock-gsap-scrolltrigger/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/greensock-gsap-scrolltrigger.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
greensock. (2026). gsap-scrolltrigger security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/greensock-gsap-scrolltrigger/audits/1BibTeX 引用
@techreport{greensock-greensock-gsap-scrolltrigger-2026,
author = {greensock},
title = {gsap-scrolltrigger security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/greensock-gsap-scrolltrigger/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "gsap-scrolltrigger security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "greensock"
date-released: "2026-08-24"
url: "https://skillstore.io/skills/greensock-gsap-scrolltrigger/audits/1"
identifiers:
- type: other
value: "skillstore:greensock-gsap-scrolltrigger:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Create a Product Story
Build pinned, scrubbed sections that reveal product details as visitors scroll.
Animate Repeated Content
Batch card or gallery entrance animations while controlling stagger and reverse behavior.
Maintain React Animations
Structure ScrollTrigger setup, refresh logic, and cleanup around component lifecycles.
试试这些提示
Animate [selector] from [initial state] to [final state] when it reaches [viewport position]. Use GSAP ScrollTrigger.
Create a scrubbed animation for [section]. Define practical start and end values, optional pinning, and development markers.
Design pinned horizontal movement for [content]. Include containerAnimation triggers, responsive distance calculations, refresh handling, and stated caveats.
Review my React ScrollTrigger implementation for registration, scoping, refresh timing, responsive behavior, cleanup, reduced motion, and timeline composition.
最佳实践
- Register ScrollTrigger once before creating any trigger.
- Create triggers in page order and refresh after layout-changing content loads.
- Clean up triggers when components or animated elements are removed.
避免
- Do not place ScrollTrigger on a child tween inside a controlled timeline.
- Do not combine scrub and toggleActions on the same trigger.
- Do not leave development markers enabled in production.