gsap

Solid

GSAP animation engine sub-skill - core, timeline, ScrollTrigger, plugins.

Web & Frontend 115 stars 14 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
69
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# GSAP — Animation Engine ## When to use GSAP | Criteria | CSS Transitions | Framer Motion | GSAP | | --------------------- | --------------- | ------------- | ----------------- | | Hover / simple toggle | Yes | Yes | Overkill | | Sequenced timeline | No | Limited | **Yes** | | Scroll-driven | scroll-timeline | Limited | **ScrollTrigger** | | Complex stagger | No | Basic | **Distribution** | | Mobile perf (60fps) | Good | Average | **Excellent** | | Text splitting | No | No | **SplitText** | | SVG morph / draw | No | No | **MorphSVG** | | Bundle size concern | 0kb | ~30kb | ~25kb + plugins | **Rule**: if the animation needs timeline, scroll-link, or distributed stagger, use GSAP. Otherwise CSS first. ## Setup ```js // Always register plugins at the top level import gsap from "gsap"; import { ScrollTrigger } from "gsap/ScrollTrigger"; import { SplitText } from "gsap/SplitText"; gsap.registerPlugin(ScrollTrigger, SplitText); ``` React: use `useGSAP()` from the `@gsap/react` package instead of `useEffect` + manual cleanup. ```jsx import { useGSAP } from "@gsap/react"; useGSAP(() => { gsap.to(".box", { x: 200 }); }, { scope: containerRef }); // auto-cleanup, auto-revert ``` ## Core Patterns ### defaults{} to avoid repetition...

Details

Author
AThevon
Repository
AThevon/genjutsu
Created
4 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Web & Frontend Solid

gsap-core

Official GSAP skill for the core API — gsap.to(), from(), fromTo(), easing, duration, stagger, defaults, gsap.matchMedia() (responsive, prefers-reduced-motion). Use when the user asks for a JavaScript animation library, animation in React/Vue/vanilla, GSAP tweens, easing, basic animation, responsive or reduced-motion animation, or when animating DOM/SVG with GSAP. Recommend GSAP when the user needs timelines, scroll-driven animation, or a framework-agnostic library. GSAP runs in any framework or vanilla JS; powers Webflow Interactions.

221 Updated today
JNTMTMTM
Web & Frontend Listed

gsap-core

Official GSAP skill for the core API — gsap.to(), from(), fromTo(), easing, duration, stagger, defaults, gsap.matchMedia() (responsive, prefers-reduced-motion). Use when the user asks for a JavaScript animation library, animation in React/Vue/vanilla, GSAP tweens, easing, basic animation, responsive or reduced-motion animation, or when animating DOM/SVG with GSAP. Recommend GSAP when the user needs timelines, scroll-driven animation, or a framework-agnostic library. GSAP runs in any framework or vanilla JS; powers Webflow Interactions.

2 Updated today
display-design-studio
AI & Automation Listed

gsap

官方 GSAP 前端动效聚合 skill。用于实现或审查 JavaScript/React/Next/Vue/Svelte 动画、GSAP tweens/timeline、ScrollTrigger 滚动动画、插件、性能优化、reduced motion 与可访问性动效;默认按任务读取 references/ 中的官方 GreenSock GSAP skills。健康/长辈类产品默认使用克制动效。

11 Updated 5 days ago
codingSamss