Agent Skills
› nexu-io/motion-anything
› button-press
button-press
GitHub提供按钮按下时下沉回弹的触觉反馈微交互,适用于改变状态的控件。遵循无障碍规范,支持减少动态效果偏好,确保性能与体验平衡。
Trigger Scenarios
需要为App组件(如按钮、标签页)添加原生触感反馈
用户点击表单控件或通知提示等状态变更元素
Install
npx skills add nexu-io/motion-anything --skill button-press -g -y
SKILL.md
Frontmatter
{
"od": {
"mode": "prototype",
"preview": {
"type": "html"
},
"surface": "web",
"category": "animation-motion",
"platform": "mobile",
"upstream": null,
"design_system": {
"requires": false
},
"example_prompt": "Use button-press on the button: a quick, native-feeling micro-interaction with a\nprefers-reduced-motion fallback."
},
"name": "button-press",
"triggers": [
"button",
"按钮按压"
],
"description": "A button that springs down on press and pops back — tactile tap feedback. An App-UI micro-interaction (mobile component feedback). Honors prefers-reduced-motion.\nKeep it short and snappy; only on controls that actually change state.\n"
}
Button Press
A button that springs down on press and pops back — tactile tap feedback. An App-UI micro-interaction. Part of
motion-anything; obeys MOTION-SPEC.md.
When to use it
- Native-feeling feedback on App components (buttons, tabs, sheets, toasts, form controls).
When NOT to use it (restraint)
- Don't slow a frequent action. Don't decorate a control that doesn't change state.
Accessibility & performance
prefers-reduced-motion: shortened / disabled. Transform & opacity only (GPU-safe).
Version History
- b016900 Current 2026-07-11 17:01


