技能 gsap-utils
📦

gsap-utils

内容修订 r1 安全 ⚙️ 外部命令🌐 网络访问

Transform animation values with GSAP utilities

Animation inputs often need to be converted, bounded, or snapped before they can drive a tween. This reference shows which GSAP helper to use and when to reuse it as a function.

支持: Claude Codex Code(CC)
你是维护者?认领此 Skill 🥉 78 青铜

使用我的智能体安装

将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。

智能体请求
Review the Skillstore skill "gsap-utils" from https://skillstore.io/skills/greensock-gsap-utils.md and its manifest at https://skillstore.io/api/skills/greensock-gsap-utils/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

你的智能体仍应展示其计划,并按安全策略请求必要确认。

Agent 可读资源

当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。

测试它

正在使用“gsap-utils”。 Clamp animation progress to 0 through 1. What happens to -0.2, 0.5, and 1.2?

预期结果:

The first value becomes 0, the middle value stays at 0.5, and the last value becomes 1. Reuse the same clamping function for subsequent updates.

正在使用“gsap-utils”。 Two components both contain elements named .item. How can I animate only the first component?

预期结果:

Create a scoped selector from the first component container. Use its matching descendants as tween targets so the second component remains unchanged.

正在使用“gsap-utils”。 Map scroll to rotation and snap it to 15-degree steps. What angle follows from 410 pixels in a range of 0 through 800?

预期结果:

Mapping 410 pixels to a full rotation gives 184.5 degrees. The nearest 15-degree step is 180 degrees.

安全审计

安全
v1 • 2026/11/21 打开版本化报告

All 70 static findings are false positives: Markdown backticks mark code, URLs are GSAP references, and the reconnaissance matches describe colors or animation grids. The reviewed file contains no evidence of shell execution, unauthorized requests, system reconnaissance, or prompt injection.

1
已扫描文件
285
分析行数
0
复核项
0
已忽略误报
最新一次完成的静态与语义审计未检测到已确认的安全发现。这并不能证明该 Skill 没有副作用。
审计者: codex
分享与引用此报告

分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。

打开版本化报告
安全评估

复制报告链接

https://skillstore.io/skills/greensock-gsap-utils/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 徽章

[![Skillstore security assessment](https://skillstore.io/badges/skills/greensock-gsap-utils/security.svg)](https://skillstore.io/skills/greensock-gsap-utils?utm_source=security_passport_badge)

HTML 徽章

<a href="https://skillstore.io/skills/greensock-gsap-utils?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/greensock-gsap-utils/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

嵌入卡片

<iframe src="https://skillstore.io/embed/skills/greensock-gsap-utils.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-utils security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/greensock-gsap-utils/audits/1

BibTeX 引用

@techreport{greensock-greensock-gsap-utils-2026, author = {greensock}, title = {gsap-utils security audit report (audit version 1)}, institution = {Skillstore}, year = {2026}, number = {1}, url = {https://skillstore.io/skills/greensock-gsap-utils/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-utils security audit report (audit version 1)" version: "unspecified" type: report authors: - name: "greensock" date-released: "2026-11-21" url: "https://skillstore.io/skills/greensock-gsap-utils/audits/1" identifiers: - type: other value: "skillstore:greensock-gsap-utils:audit:1" description: "Skillstore immutable audit report identifier"

Skillstore 评分

评分依据 证据置信度: 中
55
架构
85
可维护性
87
内容
65
社区
91
规范符合性

你能构建什么

Map scroll to rotation

Turn scroll progress into an angle and clamp input that falls outside the expected range.

Tune a stepped motion effect

Use snap to keep an animated marker on a visual grid and compare different step sizes.

Review component animation targets

Check whether repeated components share a global selector and propose a selector scoped to each container.

试试这些提示

Clamp a progress value
Show how to clamp a numeric progress value between 0 and 1 with GSAP. Explain the results for -0.2, 0.5, and 1.2.
Snap movement to a grid
Use gsap.utils.snap to create a reusable helper that aligns horizontal positions to 20-pixel steps. Show what happens to 13, 38, and 62 pixels.
Distribute scale within a component
Scope the tween to my grid container and use gsap.utils.distribute to vary scale from the center to the edges. Explain how the base and amount affect the result.
Compose a scroll transform
Use gsap.utils.pipe to clamp scroll input to 0 through 800 pixels and map it to 0 through 360 degrees. Snap the result to 15-degree steps and list checks for below-range, midpoint, and above-range inputs.

最佳实践

  • Reuse a configured helper when the same bounds or snap increment applies to many updates.
  • Scope selectors to a component container before selecting its animation targets.
  • Test endpoints and out-of-range inputs when combining mapping, clamping, and snapping.

避免

  • Pass CSS strings directly to numeric range helpers.
  • Use a document-wide selector for class names shared by independent components.
  • Assume mapRange or normalize clamps values outside the input range.

常见问题

Do GSAP utility methods need plugin registration?
No. The methods are available on gsap.utils whenever GSAP core is loaded.
How do I create a reusable range helper?
For clamp, mapRange, and normalize, omit the input value to get a function. Call that function with each new value.
How do I get a reusable random generator?
Pass true as the final argument to gsap.utils.random. The returned function produces a new sample each time you call it.
What is the difference between mapRange and clamp?
Use mapRange to convert a value from one scale to another. Use clamp to enforce minimum and maximum bounds.
When should I use selector instead of toArray?
Use selector to create a reusable query for one container. Use toArray when you need an array from a selector, collection, or single element.
How do wrap and wrapYoyo differ?
Use wrap to cycle through a range. Use wrapYoyo to reverse direction at the range boundaries.

开发者详情

作者

greensock

许可证

MIT

Skillstore 修订

r1

版本提示

作者未声明版本。

引用

5a685fd3b2304f9e4cbf5164d3ac3186cd35324e

维护新鲜度

2026/11/25

使用量

0 次下载 · 0 次浏览

文件结构

📄 SKILL.md

greensock 的更多技能

查看全部
查看全部