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

/gsap-sveltekit

@8ddf542
Run it yourself

Build or review SvelteKit animation on Svelte 5: GSAP page transitions, component enter/exit, scroll effects, route reuse, and cleanup. Use for interrupted navigation or choosing GSAP, Svelte transitions, or View Transitions, even when GSAP is unnamed. Also covers hidden-content recovery and first-load performance. Not for plain Svelte or isolated GSAP API questions.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesverification.md

≈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 svelte-check, 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 on unmount and on a reused page's re-run.
  • Confirm the page is readable with JavaScript disabled and with the pre-paint mark set but hydration blocked.
  • Test reduced motion: the same settled state, every completion callback fired, for GSAP and for any Svelte directive.
  • 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

Check the changed lifecycle in a real browser when practical:

  • Initial state is applied before reveal. Throttle the network and reload; no settled server HTML flashes before hydration.
  • Intro ends in one settled state.
  • Outro keeps the node mounted until completion runs, and only then does the held navigation re-issue or the onNavigate promise resolve. On the beforeNavigate path the URL is unchanged for the whole outro.
  • 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, a rapid double navigation, a same-route param change, a search-param-only change, a goto, and a reload. Confirm URL, visible page, focus, history, and scroll agree, and that navigating returns to null.

For a reused page, the returning lifecycle must run initial state and intro on its preserved DOM with no doubled tweens, and scroll triggers must measure correctly after new data renders.

When Svelte directives or View Transitions are involved, confirm no element is animated by two engines, outroing blocks are gone once their outro ends, and clicks land during a running transition.

With a smooth scroller, run the scroll checks on a link, a popstate, a noScroll link, and a hash-only link; to.scroll in afterNavigate matches where the page sits, and a page reused with new params keeps the same scroller. With a curtain, preloader, or shared element, run the archetype checks; also confirm the curtain covers the whole swap gap on the beforeNavigate path, the preloader shows only on enter, and a shared element still morphs when a {#key} block keeps the old page in the DOM.

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

Builds and wider checks

Run a production build for changes to routes, svelte.config.js, page options, dependencies, src/app.html, or anything release-facing; the dev server hydrates differently from the built output. Serve the build the way the adapter does: under adapter-node that is node build, since vite preview serves no server-rendered routes there. 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.

No alerts24d3 checks · Risk SAFE
  • Gen Agent Trust Hub26d

    The skill provides comprehensive technical documentation and best practices for integrating GSAP animations into SvelteKit applications. It covers lifecycle management, device compatibility, and performance optimization without introducing any malicious code, obfuscation, or data exfiltration risks.

  • Socket24d

    No alerts

  • Snyk26d

    Risk: LOW · No issues

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 SvelteKit"
}

README badge

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