Index of every page on this site: llms.txt
All skills
johnpolacek avatar

/gsap-nextjs

@8ddf542
Run it yourself

Build or review Next.js App Router animation: GSAP page transitions, component enter/exit, scroll effects, interrupted motion, and cleanup. Use even when GSAP is unnamed, including choosing React View Transitions. Also covers loading flashes, data-ready entrances, layout stability, hidden-content recovery, and first-load performance. Not for Pages Router, other routers, or isolated GSAP API questions.

Use this Skill: https://skilld.dev/gh/johnpolacek/animaxxing-skills/gsap-nextjs

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesverification.md

≈1.1k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Verification

Check in proportion to what changed. Do not turn a focused animation task into a full audit.

Always

  • Run the repo's type, lint, format, and test commands where they exist.
  • Confirm settled content is visible, interactive, and free of leftover GSAP inline styles.
  • Confirm timelines, triggers, listeners, and plugin DOM changes are cleaned up.
  • Test reduced motion: the same settled state, every completion callback fired.
  • At phone width: readable text, stable boxes, no horizontal overflow.
  • Touch-treated controls release after taps. For device changes, run the device checks.

Initially hidden content

Run the failure verification matrix when adding or changing hiding, preparation, or recovery. It covers disabled JavaScript, a blocked bundle after the marker, throws before/after styles and splits, stalled fonts/media, late initialization, no-flash success, reduced motion, and interruption/repeated setup. Assert text and native links, not opacity alone. Include shell/footer and intentionally hidden content.

Use this framework's integration rules for rendering and navigation expectations. Measure document-load LCP separately from transitions when first-load behavior changes; report measured results and untested paths.

Runtime changes

For loading changes, stagger authentication, the first query, dependent queries, and font delivery. Inspect frame-by-frame on cold desktop/mobile loads. Assert the correct branch at first reveal, stable navigation/footer positions, and no entrance replay on ordinary data updates. Record layout shifts as well as filmstrip observations; zero CLS alone does not prove that no temporary content flashed. Cover signed-in and signed-out states, resolved empty results, reduced motion, and navigation while data is pending. Label mocked auth checks separately from authenticated browser sessions.

Check the changed lifecycle in a real browser when practical:

  • Initial state is applied before reveal.
  • Intro ends in one settled state.
  • Outro keeps the node mounted until completion runs.
  • Rapid or interrupted input ends in one coherent state.
  • Layout boxes do not jump.

For route navigation, test the paths the change affects: an ordinary internal link, back and forward, and a rapid double navigation. Confirm URL, visible route, focus, history, and scroll agree.

With cacheComponents on, also navigate away and back. The returning route must re-run initial state and intro on its preserved DOM with no doubled tweens, and scroll triggers must measure correctly after re-show. Use visibility-aware selectors in browser tests, such as role queries or an explicit visible filter, since hidden routes stay in the DOM.

When both <ViewTransition> and GSAP are involved, confirm no element is animated by both and that clicks land during a running transition.

For conditional components, test show, hide, and one interruption. Confirm unmount happens after the outro.

Smooth scrolling and transition archetypes

Run the checks in Smooth scrolling and Transition archetypes when the change touches them. In the App Router also confirm:

  • After a link the page starts where Next.js put it: the top of the first page element, the hash target, or unchanged with scroll={false}. After back and forward, the browser's restored position, with no eased travel from the old page and no jump when start() runs.
  • Fast Refresh on the boundary's file and StrictMode leave one scroller and one ticker callback.
  • A ready timeout under a closed curtain reveals the page, and a POP during a covered swap ends uncovered.
  • With cacheComponents, the shared-element morph moves the visible target rather than the Activity-hidden copy, and a re-shown route never shows the preloader.

Builds and wider checks

Run a production build for changes to routes, Next config, dependencies, server and client boundaries, or anything release-facing. Run wider browser, accessibility, responsive, streaming, and performance checks only when the change touches them or the user asks for a full audit.

Report which checks ran and which could not. Do not claim runtime behavior was verified when only static review was possible.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning26d3 checks · Risk SAFE
  • Gen Agent Trust Hub26d

    The skill provides comprehensive and safe instructions for integrating GSAP animations within Next.js App Router applications, adhering to architectural and performance best practices.

  • Socket26d

    No alerts

  • Snyk26d

    Risk: MEDIUM · 1 issue

Signed by skilld at 8ddf542. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Activeupdated 4 weeks ago
metadata
{
  "short-description": "GSAP page and component lifecycles in Next.js"
}

README badge

README badge for johnpolacek/animaxxing-skills/gsap-nextjs