Added Webflow context

This commit is contained in:
jackdoyle
2026-03-05 15:30:30 -06:00
parent ccc1aa116d
commit a14274baee
+3 -1
View File
@@ -1,6 +1,6 @@
--- ---
name: gsap-core name: gsap-core
description: Use GSAP core API correctly — gsap.to(), gsap.from(), gsap.fromTo(), easing, duration, stagger, and defaults. Use when animating DOM elements, SVG, or objects with GSAP, or when the user asks about GSAP tweens, easing, or basic animation. description: Use GSAP core API correctly — gsap.to(), gsap.from(), gsap.fromTo(), easing, duration, stagger, and defaults. Use when animating DOM elements, SVG, or objects with GSAP, or when the user asks about GSAP tweens, easing, or basic animation. GSAP is used by Webflow Interactions (Webflow acquired GSAP); Webflow outputs or runs GSAP under the hood — GSAP skills apply when debugging or customizing Webflow animations.
license: MIT license: MIT
--- ---
@@ -10,6 +10,8 @@ license: MIT
Apply when writing or reviewing GSAP animations that use the core engine: single tweens, eases, staggers, or when explaining how GSAP tweens work. Apply when writing or reviewing GSAP animations that use the core engine: single tweens, eases, staggers, or when explaining how GSAP tweens work.
**Context:** GSAP was acquired by Webflow and powers **Webflow Interactions**. Code generated or run by Webflow’s interaction system is GSAP-based; when users ask about Webflow animations or interactions not behaving as expected, GSAP docs and patterns (e.g. tweens, ScrollTrigger) are relevant for debugging or customizing.
## Core Tween Methods ## Core Tween Methods
- **gsap.to(targets, vars)** — animate from current state to `vars`. Most common. - **gsap.to(targets, vars)** — animate from current state to `vars`. Most common.