Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

gsap

/gsap

Pomaga dodawać i debugować animacje webowe w GSAP (osie czasu, ScrollTrigger, stagger, transformacje) w HTML, CSS, JS i React, z wzorcami płynnego ruchu i wydajności.

Repozytorium
Skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
9
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Pomaga dodawać i debugować animacje webowe w GSAP (osie czasu, ScrollTrigger, stagger, transformacje) w HTML, CSS, JS i React, z wzorcami płynnego ruchu i wydajności.

Oryginalny opis (EN)

Use when you need to add or debug professional web animations with GSAP (timelines, ScrollTrigger, stagger, transforms) in HTML/CSS/JS/React. Includes patterns for smooth motion, performance, and common pitfalls.

Jak działa

  1. When to use
  2. Key concepts & APIs
  3. Common pitfalls (and fixes)
  4. Quick recipes
  5. What to ask the user (if requirements unclear)
Sekcje z nagłówków SKILL.md, w oryginale · 79 linii, 362 słów
Podgląd SKILL.md
---
name: gsap
description: Use when you need to add or debug professional web animations with GSAP (timelines, ScrollTrigger, stagger, transforms) in HTML/CSS/JS/React. Includes patterns for smooth motion, performance, and common pitfalls.
---

# GSAP (GreenSock) — Web Animation Skill

## When to use
- High-quality UI/motion design: entrances, micro-interactions, page transitions
- Timeline-based sequences (vs. scattered CSS transitions)
- Scroll-driven storytelling (with ScrollTrigger)
- Complex easing, staggering, orchestration across many elements

## Key concepts & APIs
- Tweens:
  - `gsap.to(targets, vars)`
  - `gsap.from(targets, vars)`
  - `gsap.fromTo(targets, fromVars, toVars)`
- Timelines:
  - `const tl = gsap.timeline({ defaults, repeat, yoyo, paused })`
  - Chain: `tl.to(...).from(...).addLabel('x').add(() => ...)`
  - Position parameter: absolute `1.2`, relative `"+=0.5"`, overlap `"-=0.3"`, label `"intro"`
- Eases: `ease: "power2.out"`, `"expo.inOut"`, `"elastic.out(1, 0.3)"`
- Staggers: `stagger: 0.05` or `{ each, from: "start|center|end|random", grid }`
- Performance-friendly properties:
  - Prefer transforms (`x`, `y`, `scale`, `rotation`) and opacity (`autoAlpha`)
- ScrollTrigger (plugin):
  - `gsap.registerPlugin(ScrollTrigger)`
  - Inline: `gsap.to(".box", { scrollTrigger: ".box", x: 500 })`
  - Advanced: `scrollTrigger: { trigger, start, end, scrub, pin, snap, markers }`
  - Standalone: `ScrollTrigger.create({ trigger, start, end, onUpdate, onToggle })`

## Common pitfalls (and fixes)
- Animating layout properties (top/left/width/height) → jank
  - Use transforms, add `will-change: transform`, avoid forced reflow.
- ScrollTrigger “not firing” due to wrong trigger sizing/overflow containers
  - Ensure trigger exists, has height, and check scroll container (nested scrolling needs config).
- Not cleaning up in SPA/React
  - Use `gsap.context()` and revert on unmount; kill triggers (`ScrollTrigger.getAll().forEach(t => t.kill())`) if needed.
- FOUC / measuring before fonts/images load
  - Initialize after layout is stable; run `ScrollTrigger.refresh()` after images load.

## Quick recipes

### 1) Hero entrance (stagger)
```js
gsap.from(".hero [data-anim]", {
  y: 24,
  autoAlpha: 0,
  duration: 0.8,
  ease: "power2.out",
  stagger: 0.06,
});
```

### 2) Sequenced timeline
```js
const tl = gsap.timeline({ defaults: { ease: "power2.out", duration: 0.6 } });
tl.from(".nav", { y: -20, autoAlpha: 0 })
  .from(".hero-title", { y: 30, autoAlpha: 0 }, "-=0.2")
  .from(".hero-cta", { scale: 0.95, autoAlpha: 0 }, "-=0.2");
```

### 3) Scroll-scrub pinned section
```js
gsap.registerPlugin(ScrollTrigger);

gsap.timeline({
  scrollTrigger: {
    trigger: ".story",
    start: "top top",
    end: "+=800",
    scrub: 1,
    pin: true,
  },
}).to(".story .panel", { xPercent: -200 });
```

## What to ask the user (if requirements unclear)
- Is this a static site or SPA (React/Next/Vue)? Any page transitions?
- Do we need scroll-driven sections (pin/scrub/snap)?
- Performance constraints (mobile support, reduced motion)?
Pliki w paczce (9)
  • REFERENCES.md 1 KB
  • SKILL.md 3 KB
  • demo/PROMPT.md 2 KB
  • demo/index.html 35 KB
  • demo/preview.jpg 31 KB
  • demo/source.json 4 KB
  • demo/assets/page-01-4f5668c5-fc4a-44e0-bc5e-a664189d3c31-800w.jpg 52 KB
  • demo/assets/page-02-0d868fef-f560-45ca-ab35-5dad4fc29059-800w.webp 54 KB
  • demo/assets/source-preview.jpg 34 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · MengTo/Skills100MIT
anton-abyzov/vskill100MIT
cowork-os/cowork-os100MIT
TerminalSkills/skills100Apache-2.0
alecs5am/ralphy100Apache-2.0
claude-dev-suite/claude-dev-suite100MIT
notivn/AIEVv2100MIT
dirnbauer/webconsulting-skills100MIT
contextgo/contextgo100Apache-2.0

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 90c81fc3348a (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90gsap-scrolltrigger
    Tworzy, wdraża lub przegląda pracę z GSAP ScrollTrigger z kontrolą formatu, dostępności, wydajności i weryfikacji wizualnej.
  • 100od-gsap-scrolltrigger
    Obsługuje GSAP ScrollTrigger przy animacjach powiązanych ze scrollowaniem: przypinanie elementów, scrub i odświeżanie.
  • 100gsap-web
    Pomaga używać GSAP w aplikacji React lub Next.js bez wycieków: osie czasu zamiast stosów tweenów, useGSAP i kontekst do sprzątania oraz ScrollTrigger odporny na zmiany tras i układu.
  • 100gsap-router
    Kieruje do właściwego skilla z domeny animacji GSAP: podstawy, sekwencjonowanie, ScrollTrigger i wzorce React, przy tweenach, osiach czasu i animacjach opartych na przewijaniu.
  • 100gsap-scrolltrigger
    Opisuje ScrollTrigger w GSAP: animacje powiązane z przewijaniem, przypinanie sekcji, scrub i wyzwalacze, w tym parallax i sekcje przypięte.
  • 100gsap-web
    Pomaga budować animacje przewijania w GSAP: ScrollTrigger, przypinanie sekcji, scrub, osie czasu hero, poziome sekcje, SplitText, Flip oraz synchronizację z Lenis i naprawę dryfu znaczników.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.