BosskuAI GSAP Animation
Use this skill when the task is to create, audit, or refactor GSAP-powered motion for web interfaces: timelines, entrance sequences, scroll-triggered sections, text reveals, pinned panels, responsive motion, route transitions, or component-level animation cleanup.
How this differs from nearby skills
bosskuai-lenis-smooth-scroll: owns smooth scrolling and scroll plumbing. Load both when GSAP ScrollTrigger must sync with Lenis.
bosskuai-3d-web-development: owns WebGL, Three.js, R3F, and 3D scene choreography. Use this skill for 2D DOM/SVG motion, or alongside 3D only for the GSAP timeline layer.
bosskuai-ui-ux-design-to-code: owns UX structure and accessibility. Use both when motion choices affect comprehension, focus, or reduced-motion behavior.
bosskuai-performance-profiling: load when animation causes jank, layout thrash, memory leaks, or low FPS.
Mindset
- Motion should clarify state, sequence, and spatial relationships; decorative motion must earn its frame budget.
- Timelines are product logic. Name the sequence, define triggers, and clean it up.
- Prefer transform and opacity animations. Treat layout-affecting properties as suspicious on hot paths.
- ScrollTrigger needs deterministic refresh behavior, especially with images, fonts, route transitions, and smooth-scroll libraries.
- React/Vue/Nuxt integrations need cleanup on unmount, route changes, breakpoint changes, and reduced-motion changes.
Workflow
Phase 1 - Classify the motion
- Identify the motion job: entrance, hover, scroll-linked, scroll-triggered, pinned story, text reveal, route transition, gesture, or 3D sync.
- Identify the target environment: vanilla JS, React, Next/Nuxt, Vue, Webflow, Astro, or a canvas/WebGL hybrid. Read the installed GSAP version from the lockfile or
node_modules/gsap/package.json, and check the latest with npm view gsap version.
- Check whether the project already uses GSAP,
@gsap/react, ScrollTrigger, SplitText, Flip, or Lenis. If it does not and the job is scroll-linked progress with no pinning or cross-element sequencing, use CSS scroll-driven animations (animation-timeline: scroll() / view()) inside @supports (animation-timeline: scroll()) with a static fallback (Baseline Newly available since October 2026; Chrome/Edge 115+, Safari 26, and Firefox 159+, which enables it by default), and the View Transitions API for route crossfades; stop there.
- Define the fallback: no-JS, reduced motion, mobile simplification, or static end state.
Phase 2 - Build the sequence
- Register only the plugins that are used.
- Use
gsap.timeline() for multi-step sequences; avoid scattered tweens when timing relationships matter.
- In component frameworks, scope selectors and cleanup with
useGSAP() (from @gsap/react) or gsap.context() equivalents. Test the component under React StrictMode too: in development, StrictMode runs effects twice, and an animation with no cleanup runs as two copies.
- Use
gsap.matchMedia() for breakpoint-specific timelines and automatic cleanup.
- For ScrollTrigger, define trigger, start/end, scrub, pin, markers during development, and refresh timing. Create ScrollTriggers on the client only (in
onMounted or a client-only component), so server rendering never touches window.
- If Lenis is present, sync ScrollTrigger through Lenis scroll events and drive Lenis from GSAP ticker; do not run two independent RAF loops.
Phase 3 - Harden behavior
- Add
prefers-reduced-motion handling: disable scrubbed storytelling or replace with short fades/static states.
- Avoid animating
top, left, width, height, or expensive filters unless there is evidence the path is safe.
- Use
will-change sparingly and remove long-lived layer hints if they bloat memory.
- Clean up timelines, ScrollTriggers, ticker callbacks, resize listeners, and custom observers.
- Verify after fonts/images load and after route transitions if the layout changes. Wait for
document.fonts.ready, then call ScrollTrigger.refresh(), because a font swap moves the sections the triggers measured.
Common patterns
import gsap from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'
gsap.registerPlugin(ScrollTrigger)
const tl = gsap.timeline({
scrollTrigger: {
trigger: '.section',
start: 'top 70%',
end: 'bottom top',
scrub: true,
},
})
tl.from('.headline', { y: 32, opacity: 0 })
const ctx = gsap.context(() => {
gsap.from('.card', { y: 24, opacity: 0, stagger: 0.08 })
}, rootElement)
ctx.revert()
Guardrails
- Do not add scroll hijacking or cinematic sequences where native scrolling, focus order, or page comprehension suffers.
- Do not ignore
prefers-reduced-motion.
- Do not create animations that depend on unstable selectors if component refs are available.
- Do not leave ScrollTriggers or ticker callbacks alive after a route/component unmount.
- Do not split text into single characters without checking emoji, combined marks and right-to-left text on real content. The split can break them.
- Do not assume GSAP docs from memory for version-sensitive plugin behavior; check official docs when exact API details matter.
- Licensing (checked 2026-09-26, gsap.com/licensing and gsap.com/docs/v3/Installation): GSAP and all plugins, including the formerly members-only SplitText and MorphSVG, are free for commercial use and ship in the public
gsap npm package; replace any npm.greensock.com .npmrc setup with npm install gsap. The Standard 'No Charge' License bars use in no-code visual animation builders that compete with Webflow; raise that with the user before building one.
Output format
GSAP motion summary:
Motion job: [entrance / scroll / pin / text / route / interaction]
Runtime: [vanilla / React / Vue / Nuxt / etc.]
Plugins: [ScrollTrigger / Flip / SplitText / none]
Reduced motion: [fallback]
Implementation plan:
Timeline: [sequence]
Triggers: [start/end/scrub/pin]
Cleanup: [context/useGSAP/revert/ticker removal]
Performance: [transform/opacity/layer strategy]
Verification:
[breakpoints, route changes, reduced motion, FPS/jank checks]
References
../../references/checklists/gsap-animation-checklist.md
../../references/checklists/ui-fidelity-checklist.md
../../references/checklists/engineering-quality-bar.md
1---2name: bosskuai-gsap-animation3description: "Use when doing GSAP work: timelines, ScrollTrigger pins/scrubs, SplitText, Flip, MorphSVG, matchMedia, useGSAP cleanup, Lenis/ScrollSmoother sync, and deciding when native CSS scroll-driven animation suffices. UI micro-motion: animate."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-gsap-animation6---78# BosskuAI GSAP Animation910Use this skill when the task is to create, audit, or refactor GSAP-powered motion for web interfaces: timelines, entrance sequences, scroll-triggered sections, text reveals, pinned panels, responsive motion, route transitions, or component-level animation cleanup.1112## How this differs from nearby skills1314- **`bosskuai-lenis-smooth-scroll`**: owns smooth scrolling and scroll plumbing. Load both when GSAP ScrollTrigger must sync with Lenis.15- **`bosskuai-3d-web-development`**: owns WebGL, Three.js, R3F, and 3D scene choreography. Use this skill for 2D DOM/SVG motion, or alongside 3D only for the GSAP timeline layer.16- **`bosskuai-ui-ux-design-to-code`**: owns UX structure and accessibility. Use both when motion choices affect comprehension, focus, or reduced-motion behavior.17- **`bosskuai-performance-profiling`**: load when animation causes jank, layout thrash, memory leaks, or low FPS.1819## Mindset2021- Motion should clarify state, sequence, and spatial relationships; decorative motion must earn its frame budget.22- Timelines are product logic. Name the sequence, define triggers, and clean it up.23- Prefer transform and opacity animations. Treat layout-affecting properties as suspicious on hot paths.24- ScrollTrigger needs deterministic refresh behavior, especially with images, fonts, route transitions, and smooth-scroll libraries.25- React/Vue/Nuxt integrations need cleanup on unmount, route changes, breakpoint changes, and reduced-motion changes.2627## Workflow2829### Phase 1 - Classify the motion30311. Identify the motion job: entrance, hover, scroll-linked, scroll-triggered, pinned story, text reveal, route transition, gesture, or 3D sync.322. Identify the target environment: vanilla JS, React, Next/Nuxt, Vue, Webflow, Astro, or a canvas/WebGL hybrid. Read the installed GSAP version from the lockfile or `node_modules/gsap/package.json`, and check the latest with `npm view gsap version`.333. Check whether the project already uses GSAP, `@gsap/react`, ScrollTrigger, SplitText, Flip, or Lenis. If it does not and the job is scroll-linked progress with no pinning or cross-element sequencing, use CSS scroll-driven animations (`animation-timeline: scroll()` / `view()`) inside `@supports (animation-timeline: scroll())` with a static fallback (Baseline Newly available since October 2026; Chrome/Edge 115+, Safari 26, and Firefox 159+, which enables it by default), and the View Transitions API for route crossfades; stop there.344. Define the fallback: no-JS, reduced motion, mobile simplification, or static end state.3536### Phase 2 - Build the sequence37385. Register only the plugins that are used.396. Use `gsap.timeline()` for multi-step sequences; avoid scattered tweens when timing relationships matter.407. In component frameworks, scope selectors and cleanup with `useGSAP()` (from `@gsap/react`) or `gsap.context()` equivalents. Test the component under React StrictMode too: in development, StrictMode runs effects twice, and an animation with no cleanup runs as two copies.418. Use `gsap.matchMedia()` for breakpoint-specific timelines and automatic cleanup.429. For ScrollTrigger, define trigger, start/end, scrub, pin, markers during development, and refresh timing. Create ScrollTriggers on the client only (in `onMounted` or a client-only component), so server rendering never touches `window`.4310. If Lenis is present, sync ScrollTrigger through Lenis scroll events and drive Lenis from GSAP ticker; do not run two independent RAF loops.4445### Phase 3 - Harden behavior464711. Add `prefers-reduced-motion` handling: disable scrubbed storytelling or replace with short fades/static states.4812. Avoid animating `top`, `left`, `width`, `height`, or expensive filters unless there is evidence the path is safe.4913. Use `will-change` sparingly and remove long-lived layer hints if they bloat memory.5014. Clean up timelines, ScrollTriggers, ticker callbacks, resize listeners, and custom observers.5115. Verify after fonts/images load and after route transitions if the layout changes. Wait for `document.fonts.ready`, then call `ScrollTrigger.refresh()`, because a font swap moves the sections the triggers measured.5253## Common patterns5455```js56import gsap from 'gsap'57import { ScrollTrigger } from 'gsap/ScrollTrigger'5859gsap.registerPlugin(ScrollTrigger)6061const tl = gsap.timeline({62 scrollTrigger: {63 trigger: '.section',64 start: 'top 70%',65 end: 'bottom top',66 scrub: true,67 },68})6970tl.from('.headline', { y: 32, opacity: 0 })71```7273```js74const ctx = gsap.context(() => {75 gsap.from('.card', { y: 24, opacity: 0, stagger: 0.08 })76}, rootElement)7778ctx.revert()79```8081## Guardrails8283- Do not add scroll hijacking or cinematic sequences where native scrolling, focus order, or page comprehension suffers.84- Do not ignore `prefers-reduced-motion`.85- Do not create animations that depend on unstable selectors if component refs are available.86- Do not leave ScrollTriggers or ticker callbacks alive after a route/component unmount.87- Do not split text into single characters without checking emoji, combined marks and right-to-left text on real content. The split can break them.88- Do not assume GSAP docs from memory for version-sensitive plugin behavior; check official docs when exact API details matter.89- Licensing (checked 2026-09-26, gsap.com/licensing and gsap.com/docs/v3/Installation): GSAP and all plugins, including the formerly members-only SplitText and MorphSVG, are free for commercial use and ship in the public `gsap` npm package; replace any `npm.greensock.com` `.npmrc` setup with `npm install gsap`. The Standard 'No Charge' License bars use in no-code visual animation builders that compete with Webflow; raise that with the user before building one.9091## Output format9293```text94GSAP motion summary:95 Motion job: [entrance / scroll / pin / text / route / interaction]96 Runtime: [vanilla / React / Vue / Nuxt / etc.]97 Plugins: [ScrollTrigger / Flip / SplitText / none]98 Reduced motion: [fallback]99100Implementation plan:101 Timeline: [sequence]102 Triggers: [start/end/scrub/pin]103 Cleanup: [context/useGSAP/revert/ticker removal]104 Performance: [transform/opacity/layer strategy]105106Verification:107 [breakpoints, route changes, reduced motion, FPS/jank checks]108```109110## References111112- `../../references/checklists/gsap-animation-checklist.md`113- `../../references/checklists/ui-fidelity-checklist.md`114- `../../references/checklists/engineering-quality-bar.md`