Agent Skills
› nexu-io/motion-anything
› xyz-rotate
xyz-rotate
GitHubAnimXYZ的旋转进入动画技能,通过声明式属性混合淡入、移动、缩放和旋转效果,无需编写关键帧。支持无障碍偏好设置,适用于前端页面元素入场动效实现。
触发场景
需要为元素添加旋转进入动画
使用AnimXYZ库实现组合式入场效果
安装
npx skills add nexu-io/motion-anything --skill xyz-rotate -g -y
SKILL.md
Frontmatter
{
"od": {
"mode": "prototype",
"preview": {
"type": "html"
},
"surface": "web",
"category": "animation-motion",
"platform": "desktop",
"upstream": "https:\/\/animxyz.com",
"design_system": {
"requires": false
},
"example_prompt": "Use AnimXYZ xyz=\"fade rotate-right-45\" on the element as a entrance; toggle xyz-in to play, with a\nprefers-reduced-motion fallback."
},
"name": "xyz-rotate",
"triggers": [
"rotate in",
"animxyz",
"旋转入场"
],
"description": "Rotate In — a composable AnimXYZ entrance via the xyz=\"fade rotate-right-45\" attribute. Declarative: mix\nfade + move + scale + rotate without writing keyframes. MIT. Honors prefers-reduced-motion.\n"
}
XYZ · Rotate In
Rotate In — composable entrance from AnimXYZ (MIT). Part of motion-anything.
When to use it
- Declarative entrance mixing fade/move/scale/rotate via xyz="..." — no keyframes to write.
When NOT to use it (restraint)
- Shipping ~100KB core CSS for a single effect; overusing on many elements.
How to apply
- Include @animxyz/core CSS. 2. Set xyz="fade rotate-right-45" on the element. 3. Toggle class xyz-in / xyz-out.
Accessibility & license
- prefers-reduced-motion: no autoplay. MIT.
版本历史
- b016900 当前 2026-07-11 17:01


