Agent Skills
› nexu-io/motion-anything
› fx-magnetic-field
fx-magnetic-field
GitHub基于Canvas的磁极场线弯曲动画特效,适用于幻灯片标题卡或启动视频的背景。需遵循减少运动偏好设置,每屏仅用一次,避免用于需要专注阅读的内容区域。
Trigger Scenarios
幻灯片标题页
章节分隔符
启动视频背景
英雄区块(Hero moments)
Install
npx skills add nexu-io/motion-anything --skill fx-magnetic-field -g -y
SKILL.md
Frontmatter
{
"od": {
"mode": "prototype",
"preview": {
"type": "html"
},
"surface": "web",
"category": "animation-motion",
"platform": "desktop",
"upstream": "https:\/\/github.com\/nexu-io\/open-design",
"design_system": {
"requires": false
},
"example_prompt": "Use fx-magnetic-field as a background effect on a slide or hero: call HPX['magnetic-field'](el) on a positioned dark\ncontainer; keep to one bold effect per screen, with a reduced-motion guard."
},
"name": "fx-magnetic-field",
"triggers": [
"magnetic",
"磁场"
],
"description": "Field lines bending around poles — a hypnotic backdrop. A bold, canvas-based effect from Open Design's html-ppt fx pack — for slides and launch\nvideos. Guards prefers-reduced-motion (does not start). One per screen; on web use sparingly.\n"
}
Magnetic Field
Field lines bending around poles — a hypnotic backdrop. From Open Design's html-ppt fx pack (Apache-2.0).
Part of motion-anything; obeys MOTION-SPEC.md.
When to use it
- Title cards, section breaks, or hero moments in slides / launch videos.
When NOT to use it (restraint)
- Web body content or anything needing focused reading. Never more than one bold effect at once.
How to apply
- Copy
magnetic-field.jsand_util.jsand link them. - Add
data-fx="magnetic-field"to a positioned container; callHPX['magnetic-field'](el)(guard prefers-reduced-motion).
Accessibility & performance
- Guard with prefers-reduced-motion (don't start). Canvas-based; isolated compositing layer.
Version History
- b016900 Current 2026-07-11 17:06


