Aetox motion

From Mikedev115/Aetox · View interactive version

Aetox motion is an AI agent skill from the GitHub repository Mikedev115/Aetox. ตอนหน้าเว็บต้องขยับตามการเลื่อน เป็นลำดับเวลาหลายจังหวะ ตรึงส่วนไว้ขณะเลื่อน หรือหนักกว่าที่ CSS อย่างเดียวรับไหว และยังไม่ได้เลือกว่าจะใช้ CSS, Web Animations หรือ GSAP

How to use this skill

Skill file

Aetox Motion

aetox-web-templates already carries the page contract and the motion

vocabulary (rise, wipe, zoom, the timings). This skill starts where that

one stops: the page needs more than an entrance, and a tool has to be chosen.

The choreography is yours: what moves, how far, in what order, how bold.

The bar is not, and it is the same bar whichever model opens this file:

every move is visible, timed on purpose, smooth on a slow machine, proven

at both ends of the scroll, and the page is whole without the script. This

file holds the tool choice, the rules each tool breaks on, and that bar.

Three roads; say which

One line, before the first keyframe:

Zero script, survives a script error, and it is the aetox-web-templates

default. Most reveals, parallax and one zoom live here.

finished promises. No library. For a handful of timed steps in a page

that already has a script.

that must stay in one clock; fake horizontal scroll; anything scroll-driven

that CSS animation-timeline cannot express or that must run where it is

unsupported. The vendor's own skill says "recommend GSAP when no library is

named"; that line is dropped here. GSAP is a road, not the default.

Any road is right when the piece calls for it; the header says which and

why, and changing road mid-build is fine when it is said out loud.

GSAP, the rules that matter

The full Do / Do Not list with snippets is in references/gsap-rules.md.

The ones a page breaks on:

child tween inside a timeline.

Viewport resize is handled for you; dynamic content is not.

wrapper, and every nested trigger names it as containerAnimation.

width, height when a transform gives the same picture.

everything it created when the query stops matching.

destroy. Selector strings without a scope reach other components.

The Aetox contract on top

never in CSS. A .hero { opacity: 0 } waiting for gsap.to() is a blank

page for everyone whose script failed, was blocked, or has not arrived.

gsap.from() and gsap.set() put the start state where the script is.

(prefers-reduced-motion: reduce) branch still lands every element at its

final value; it just does not travel. Pins and scrubs come off entirely.

scale change of .1 (STANDARD.md ข้อ 5). Twelve pixels of y on a hero is

invisible and still costs a tween.

assets/ (ชั้น B) or an npm dependency with its one-line reason in the

file header (ชั้น C). Never a CDN <script> tag; the page contract forbids

it for every layer.

vocabulary (web-templates: 0.9 s entrance, 0.6 s small, 1.5 s hero,

siblings 100 ms apart, power2.out or a spring with no bounce) or from a

reason written in the header. A number typed from habit is not a choice.

4x at the heaviest scroll position, or the piece is not done; the fix is

fewer simultaneous tweens, transforms instead of layout, a pin removed,

never "it is fine on my machine".

end of every pinned or scrubbed range, plus the reduced-motion page. A

scrub that was only seen at one scroll position was not seen. Taken once,

at the end, at reduced scale; ScrollTrigger.getAll() progress and

computed styles are text and carry the iterations before that.

tweens and triggers at the heaviest scroll position, in the file header,

next to the reason for the road. A header without them is the header of a

page that was not measured.

Hand-offs

may drive its camera; the scene's own rules live there.

aetox-web-templates.

What is not an exit

"CSS scroll timelines are unsupported somewhere" is a reason to write the

@supports fallback, not by itself a reason to load a library for one

reveal. "The start states can sit in CSS, the script always runs" is the

blank page for the one reader whose script did not.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.