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.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agentkit-auditSkill
- chart-designSkill
- context-budgetSkill
- context-compressorSkill
- daily-standupSkill
- data-architectSkill
- data-eng-routerSkill
- data-quality-standardsSkill
- data-storytellingSkill
- debug-loopSkill
- doc-standardsSkill
- ext-archifySkill
- ext-awsSkill
- ext-azureSkill
- ext-cli-opsSkill
- ext-codegraphSkill
- ext-databricksSkill
- ext-diagramsSkill
- ext-gap-discoverySkill
- ext-gcpSkill
- ext-hallmarkSkill
- ext-meta-museSkill
- ext-reaSkill
- ext-security-auditSkill
- ext-seoSkill
- ext-slidesSkill
- ext-systems-designSkill
- ext-ui-uxSkill
- genai-engineeringSkill
- humanizerSkill
- mcp-security-reviewSkill
- meeting-to-actionsSkill
- memorySkill
- memory-syncSkill
- ml-lifecycleSkill
- orchestrateSkill
- pipeline-scaffoldSkill
- prompt-enhancerSkill
- pr-reviewSkill
- session-insightsSkill
- setup-guardianSkill
- skill-forgeSkill
- smart-navigatorSkill
- spec-writerSkill
- token-saverSkill
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
- Distinctive: line 29
Never add a second animation library for an effect the first covers.
- Distinctive: line 42
no autoplaying motion over 5s without a pause control.
- Distinctive: line 54
Check each number against the budget.
≈ “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.
Files
Frontend Motion & 3D
Choose the lightest tool, set the budget, then build.
Procedure
- Match the effect to the lightest tool (
reference/stack.mdhas the full table). Named skills other thanext-*are optional; if one is not installed, follow this file andreference/stack.mddirectly:- 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-hallmarkfirst (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-seobaseline (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.
- hover, enter/exit, layout shifts → CSS transitions or
- Set the budget before code. 60fps on a mid-range laptop; animate
only
transformandopacity; LCP element never waits on JS or a 3D scene; 3D bundle lazy-loaded below the fold;devicePixelRatiocapped at 2; textures compressed (KTX2/Draco for models). - 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'suseReducedMotion, 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
- honor
- 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. - 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). - Hand off multi-file UI builds to the
frontend-engineersubagent 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.
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
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.

