gsap-plugins
Qué hace
Esta herramienta te ayuda a usar 'plugins' (complementos pequeños) de la biblioteca GSAP. Te permite registrar estos plugins y usar funciones como desplazar la página a un punto concreto (ScrollToPlugin), animar cambios de diseño (Flip), hacer que los elementos se puedan arrastrar (Draggable) y más.
Cuándo usarla
- ✓Cuando quieres registrar un plugin de GSAP en tu código.
- ✓Cuando creas animaciones de desplazamiento para ir a un punto concreto de la página.
- ✓Si necesitas que los elementos se puedan arrastrar por la pantalla.
Link de la skill
https://github.com/nexu-io/open-design/blob/main/skills/gsap-plugins/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Cómo registro ScrollToPlugin en GSAP?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Usas la función `gsap.registerPlugin()` para indicarle a GSAP qué plugins extra vas a usar. Después, puedes llamar a las funciones específicas de cada plugin.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
GSAP Plugins
Curated from GreenSock's official GSAP skills: https://github.com/greensock/gsap-skills
When to Use This Skill
Apply when using or reviewing code that uses GSAP plugins: registering plugins, scroll-to, flip/FLIP animations, draggable elements, SVG (DrawSVG, MorphSVG, MotionPath), text (SplitText, ScrambleText), physics, easing plugins (CustomEase, EasePack, CustomWiggle, CustomBounce), or GSDevTools. ScrollTrigger has its own skill (gsap-scrolltrigger).
Related skills: For core tweens use gsap-core; for ScrollTrigger use gsap-scrolltrigger; for React use gsap-react.
Licensing & Install (important)
Every GSAP plugin is free, including for commercial use. Since Webflow's acquisition of GSAP, Club GSAP is no longer a paid tier and no plugin requires a membership, license key, or auth token — this includes formerly Club-only plugins (SplitText, MorphSVG, etc.).
- ✅ Install everything from the public
gsapnpm package:npm install gsap. All plugins are included — import them asgsap/SplitText,gsap/MorphSVGPlugin, etc. - ❌ Do not generate an
.npmrcwith a GreenSock auth token, suggest the privatenpm.greensock.comregistry, or tell users to sign up for Club GSAP to access a plugin. Those instructions are outdated.
Registering Plugins
Register each plugin once so GSAP (and bundlers) know to include it. Use gsap.registerPlugin() with every plugin used in the project:
import gsap from "gsap";
import { ScrollToPlugin } from "gsap/ScrollToPlugin";
import { Flip } from "gsap/Flip";
import { Draggable } from "gsap/Draggable";
gsap.registerPlugin(ScrollToPlugin, Flip, Draggable);
- ✅ Register before using the plugin in any tween or API call.
- ✅ In React, register at top level or once in the app (e.g. before first useGSAP); do not register inside a component that re-renders. useGSAP is a plugin that needs to be registered before use.
Scroll
ScrollToPlugin
Animates scroll position (window or a scrollable element). Use for “scroll to element” or “scroll to position” without ScrollTrigger.
gsap.registerPlugin(ScrollToPlugin);
gsap.to(window, { duration: 1, scrollTo: { y: 500 } });
gsap.to(window, { duration: 1, scrollTo: { y: "#section", offsetY: 50 } });
gsap.to(scrollContainer, { duration: 1, scrollTo: { x: "max" } });
ScrollToPlugin — key config (scrollTo object):
| Option | Description |
|---|---|
x, y |
Target scroll position (number), or "max" for maximum |
element |
Selector or element to scroll to (for scroll-into-view) |
offsetX, offsetY |
Offset in pixels from the target position |
ScrollSmoother
Smooth scroll wrapper (smooths native scroll). Requires ScrollTrigger and a specific DOM structure (content wrapper + smooth wrapper). Use when smooth, momentum-style scroll is needed. See GSAP docs for setup; register after ScrollTrigger. DOM structure would look like:
<body>
<div id="smooth-wrapper">
<div id="smooth-content">
<!--- ALL YOUR CONTENT HERE --->
</div>
</div>
<!-- position: fixed elements can go outside --->
</body>
DOM / UI
Flip
Capture state with Flip.getState(), then apply changes (e.g. layout or class changes), then use Flip.from() to animate from the previous state to the new state (FLIP: First, Last, Invert, Play). Use when animating between two layout states (lists, grids, expanded/collapsed).
gsap.registerPlugin(Flip);
const state = Flip.getState(".item");
// change DOM (reorder, add/remove, change classes)
Flip.from(state, { duration: 0.5, ease: "power2.inOut" });
Flip — key config (Flip.from vars):
| Option | Description |
|---|---|
absolute |
Use position: absolute during the flip (default: false) |
nested |
When true, only the first level of children is measured (better for nested transforms) |
scale |
When true, scale elements to fit (avoids stretch); default true |
simple |
When true, only position/scale are animated (faster, less accurate) |
duration, ease |
Standard tween options |
More information
https://gsap.com/docs/v3/Plugins/Flip
Draggable
Makes elements draggable, spinnable, or throwable with mouse/touch. Use for sliders, cards, reorderable lists, or any drag interaction.
gsap.registerPlugin(Draggable, InertiaPlugin);
…
Preguntas frecuentes
¿Todos los plugins de GSAP son de pago?
No, todos los plugins de GSAP son gratuitos, incluido su uso comercial. Ya no necesitas una licencia ni una suscripción para usar ningún plugin.
¿Tengo que instalar los plugins por separado?
No, todos los plugins ya vienen incluidos en el paquete principal de GSAP. Solo tienes que importarlos y registrarlos en tu código.
¿Cuál es la diferencia entre ScrollToPlugin y ScrollTrigger?
ScrollToPlugin sirve para animar la posición de desplazamiento de la página hasta un punto concreto. ScrollTrigger es más complejo y permite activar animaciones según la posición del scroll.
Detalles
Descripción original del autor
Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.
repo: nexu-io/open-design
Popularidad
- Estrellas en GitHub
- 101 mil
- Posición en el ranking
- #1182
- Licencia
- Apache-2.0
- Actualizada
- 15/10/2026
Comentarios
- …
Más skills de este repositorio
sample-plugin
101 milHace que tu agente cree un archivo de metadatos para las pruebas. Ayuda a asegurar que el código funcione bien en distintas situaciones.
aster-atelier
101 milAyuda a tu agente a crear un sitio web artístico con aire clásico. Usa imágenes elegantes, cielos azules y tipografías con serifa para un aire cinematográfico.
audio-jingle
101 milHace que tu agente genere audio, como sintonías y efectos de sonido. Puede crear música y voces, y guardar el resultado como archivo de audio.
blog-post
101 milAyuda a tu agente a escribir artículos largos o entradas de blog. Incluye espacio para imágenes, citas y datos del autor.
Skills parecidas
angular-developer
280 milAyuda a tu agente con código de Angular y la estructura del proyecto. Útil para empezar proyectos, crear partes de código o mejorar el rendimiento y la accesibilidad.
frontend-a11y
280 milAyuda a tu agente a hacer que las interfaces web sean accesibles para todos. Asegura que sitios y apps funcionen bien con lectores de pantalla y navegación por teclado.
frontend-patterns
280 milHace que tu agente aplique patrones modernos en desarrollo frontend. Optimiza el rendimiento, gestiona el estado y sigue buenas prácticas en React y Next.js.