agentleFS
jthiruveedulajthiruveedula/agentkit/skills/frontend-motion-3d/SKILL.md

frontend-motion-3d

Skill0 starsChanged 2 months agoMITView on GitHub

Pick the lightest stack for UI animation and 3D (CSS/Motion, GSAP+ScrollTrigger, three.js/R3F, HyperFrames) within a perf and a11y budget. Use when asked for animations, scroll effects, 3D/WebGL, motion design, interactive heroes.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never add a second animation library for an effect the first covers.

    line 29
  2. Distinctive:

    no autoplaying motion over 5s without a pause control.

    line 42
  3. Distinctive:

    Check each number against the budget.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Frontend Motion & 3D

Choose the lightest tool, set the budget, then build.

Procedure

  1. Match the effect to the lightest tool (reference/stack.md has the full table). Named skills other than ext-* are optional; if one is not installed, follow this file and reference/stack.md directly:
    • hover, enter/exit, layout shifts → CSS transitions or motion-dev
    • sequenced timelines, text splits, SVG morphs → gsap-core, gsap-timeline, gsap-plugins
    • scroll-driven storytelling, pinning, scrub → gsap-scrolltrigger (or CSS scroll-driven animations for simple cases)
    • a 3D scene, model viewer, shaders → three.js; in React, React Three Fiber + drei
    • immersive scroll-through 3D world → scroll-world; 3D data viz → 3dviz-pro-max
    • rendered video / motion graphics from HTML → hyperframes
    • visual direction, layout, type, color → ext-hallmark first (every UI change passes its Floor + sloplint)
    • charts, graphs, KPI tiles, dashboards → chart-design (form, honest axes, palette check)
    • any public page or site → ext-seo baseline (meta, canonical, OG, JSON-LD, sitemap, robots)
    • how a live reference site builds an effect → ext-rea (inspect_web_page, analyze_web_bundle), then reimplement it. Never copy its code or assets. Detect what the project already uses (package.json) and stay with it. Never add a second animation library for an effect the first covers.
  2. Set the budget before code. 60fps on a mid-range laptop; animate only transform and opacity; LCP element never waits on JS or a 3D scene; 3D bundle lazy-loaded below the fold; devicePixelRatio capped at 2; textures compressed (KTX2/Draco for models).
  3. Build the accessible baseline first. Content and navigation work with motion off and without WebGL. Then layer motion on:
    • honor prefers-reduced-motion (gsap.matchMedia(), Motion's useReducedMotion, or a CSS media query) — reduce to fades, don't just speed up
    • a static image or poster when WebGL is unavailable or the context is lost
    • no autoplaying motion over 5s without a pause control; nothing that flashes more than 3 times per second
    • focus order and keyboard access unchanged by pinned sections
  4. Clean up. Kill tweens/ScrollTriggers on unmount (gsap.context() / useGSAP), dispose three.js geometries, materials, textures, and the renderer; stop the render loop when off-screen.
  5. Verify with numbers. Performance panel trace (no long frames during the animation), Lighthouse LCP/CLS, reduced-motion toggled on, WebGL disabled. For a browser check use ego-browser. Report the numbers; "looks smooth" is not evidence. Check each number against the budget; if one misses, fix and re-measure until it passes (max 3 attempts, then report what still fails).
  6. Hand off multi-file UI builds to the frontend-engineer subagent with the effect list, the chosen stack, and the budget from step 2.

Reference

  • reference/stack.md — effect → tool table, three.js/R3F setup rules, performance budget, accessibility checklist.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.