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

/gsap-vanilla

@8ddf542
Run it yourself

Build or review animation on plain HTML/CSS/JavaScript sites: GSAP page intros/outros, component show/hide, scroll effects, cross-document View Transitions, bfcache, and fetch/swap navigation with Swup, Barba, or Taxi. Use for first-paint flashes or interrupted navigation, even when GSAP is unnamed. Also covers hidden-content recovery and first-load performance. Not for component frameworks or isolated GSAP API questions.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesdevices.md

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

<!-- Generated from shared/devices.md; run scripts/sync_initialization.py. -->

Devices and input

The framework skill owns device tiers, measurements, and budgets. Motion recipes consume them.

One capability query

Use capability queries, not user-agent strings. Check installed GSAP docs before adapting:

const mm = gsap.matchMedia();
mm.add(
  {
    all: "all", // Run even when every capability query is false.
    reduce: "(prefers-reduced-motion: reduce)",
    hover: "(hover: hover)",
    coarse: "(pointer: coarse)",
    narrow: "(max-width: 767px)",
  },
  (ctx) => {
    const { reduce, hover, coarse, narrow } = ctx.conditions!;
    // Build this tier's timelines. Return cleanup for non-GSAP resources.
  },
);
  • Preserve app-level reduced-motion overrides; matchMedia sees only OS preferences. Rebuild when the override changes.
  • Queries describe the primary input. Use each event's pointerType for hybrid-device interactions.
  • Tier changes revert and rebuild GSAP effects. Preserve settled content; never replay entrances. Revert mm at the owner's cleanup boundary.

Viewport and orientation

  • Debounce root-width changes; rebuild affected splits and refresh pin measurements. Ignore browser-chrome height changes for text splitting.
  • On orientation changes during intro, settle before rebuilding; do not replay.
  • Full-height covers use supported dvh or svh, with a vh fallback.
  • Reserve stable geometry at every breakpoint.

Touch and scroll

  • Preserve native scrolling and touch-action; decoration must not capture gestures.
  • Controls work without hover. Touch presses end on pointerup, pointercancel, or pointerleave.
  • Track keyboard versus pointer input. :focus-visible alone cannot distinguish them on text fields.
  • Use the official gsap-scrolltrigger skill for scrub, pinning, and scroll normalization.

Budgets

  • Coarse or narrow tiers: fewer visible targets, shorter intros, and bounded staggers.
  • Prefer transforms and autoAlpha; measure filters and large clip-path tweens before using them.
  • Reduce particle density and wave character counts. Cap canvas pixel ratio at 2.
  • Treat hardwareConcurrency and deviceMemory as optional hints that can only lower budgets.

Backgrounded pages

Hidden tabs can suspend frame callbacks. Bound frame and timeline waits with timeouts; settle stalled phases.

Verify

  • Phone width: readable text, stable boxes, no horizontal overflow.
  • Touch buttons and text fields: release and swipe cancellation leave no lingering hot state.
  • Keyboard focus and mouse hover still work, including after touch input.
  • No capability queries match: default phase setup still runs.
  • Rotate during intro and at settled: rebuild without flashes or replay.
  • Throttle CPU 4x: lower budgets if idle frame pacing fails.
  • Reduced motion on coarse input: same settled state and completion callbacks.
  • Test momentum scrolling and browser-chrome resizing on a real device when practical.

Report device tests separately from emulation.

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 alerts26d3 checks · Risk SAFE
  • Gen Agent Trust Hub26d

    The GSAP Vanilla skill provides comprehensive architectural guidance and implementation patterns for web animations. The analysis found no evidence of malicious code, prompt injection, data exfiltration, or other security vulnerabilities. The instructions follow industry best practices for performance, accessibility, and lifecycle management.

  • Socket26d

    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
Other metadata
metadata
{
  "short-description": "GSAP page and component lifecycles on plain HTML sites"
}

README badge

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