web-motion
Skill0 starsChanged 25 days agoMITView on GitHub
ใส่ animation, parallax, scroll reveal, smooth scroll ให้เว็บที่สร้างเสร็จแล้ว โดยไม่ทำให้หน่วงและเคารพ reduced-motion. ใช้ในขั้น Motion ของ web-director หรือเมื่อผู้ใช้ขอ parallax/animation/เอฟเฟกต์ตอน scroll.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- tiagovilasboas/downshift-aitheir own version, first seen Nov 29, 2026
- juliomachadome/tested-agent-skillstheir own version, first seen Nov 22, 2026
- YehorSS/storymotiontheir own version, first seen Nov 22, 2026
- ryankolean/summit-claude-skillstheir own version, first seen Nov 1, 2026
- yiyu-works/skillstheir own version, first seen Oct 20, 2026
- leo-scosta/skillsettheir own version, first seen Oct 15, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Schmandarine/web-motion-skill★ 17same name
- tiagovilasboas/downshift-ai★ 6same name
- ryankolean/summit-claude-skills★ 4same name
- YehorSS/storymotion★ 1same name
- yiyu-works/skills★ 1same name
- juliomachadome/tested-agent-skills★ 0same name
- leo-scosta/skillset★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- web-briefSkill
- web-buildSkill
- web-deploySkill
- web-directionSkill
- web-directorSkill
- web-qaSkill
The file
Files
Web Motion
ใส่หลังเว็บสวยแบบนิ่งแล้วเท่านั้น สูตรอยู่ที่ references/recipes.md
กฎบังคับ
- ขยับเฉพาะ
transform/opacity(ไม่ animate width/top/box-shadow) gsap.matchMedia()แยก:(prefers-reduced-motion: no-preference)และ(pointer: fine)- reduced-motion → ไม่มี parallax, ไม่มี Lenis, เนื้อหาแสดงครบทันที
- ทุก animation อยู่ใน
useGSAP(React) เพื่อ cleanup อัตโนมัติ - เนื้อหาต้องมองเห็นได้แม้ JS ไม่ทำงาน (อย่าเริ่มด้วย
opacity:0ใน CSS)
ตรวจ
- เลื่อนทั้งหน้าใน browser pane ดู console ไม่มี error
- Performance: ไม่มี long task จาก scroll handler
บทเรียนจากงานจริง (portfolio, 2026-11)
- รวม motion ไว้ hook เดียว (
useMotion) ที่อ่านdata-speed/data-reveal/data-line/data-count/data-tiltจาก markup — section ไม่ต้อง import GSAP - Reveal:
gsap.set(...{opacity:0,y:24})ใน JS +ScrollTrigger.batch(..., {once:true})ดีกว่า from() ต่อ section — element ใหม่ที่ React สร้างหลังสลับภาษาจะแสดงปกติ ไม่ค้าง - ห้าม
overwrite: 'auto'ใน reveal ถ้า element เดียวกันมี tilt — มันฆ่า tween rotate ทิ้ง - Tilt ใช้
gsap.to(card, {rotateX, rotateY, overwrite:'auto'})+transformPerspectiveบนการ์ด (ไม่ต้องแก้ CSS parent) - Count-up: เก็บค่าจริงใน
el.dataset.countOriginal ??=— StrictMode รัน effect 2 รอบ รอบสองจะอ่านได้ "0+" ที่เราเขียนทับ แล้วนับถึง 0; cleanup ให้คืนข้อความเดิม - ใช้
ResizeObserver(document.body)→ debounceScrollTrigger.refresh()(setTimeout ไม่ใช่ rAF) ครอบคลุมสลับภาษา/ฟอนต์/รูปโหลด - Anchor link: ดัก click
a[href^="#"]→lenis.scrollTo(target, {offset: -ความสูง header}) - Import
lenis/dist/lenis.css - ทดสอบใน browser pane ที่ ซ่อนอยู่: rAF ไม่ทำงาน → animation ไม่เดิน. import gsap จาก URL
deps/gsap.js?v=ในperformance.getEntriesByType('resource')(instance เดียวกับแอป) แล้วเรียกgsap.ticker.tick()วนเอง;quickToไม่ตอบสนองแบบนี้ — ทดสอบไม่ได้ - console ของ pane เก็บ error เก่าจาก HMR ไว้ — ดู timestamp
?t=ก่อนสรุปว่ามี error - reduced-motion: resize_window emulate ไม่ได้ ต้องตรวจในเบราว์เซอร์จริง (DevTools → Rendering) ช่วง QA
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.

