Agent Skills
› nexu-io/motion-anything
› button-press
button-press
GitHub提供按钮按下时的弹性微交互动效,模拟原生触感反馈。适用于改变状态的UI控件,支持减少动态偏好设置,仅使用GPU安全的变换和透明度属性以优化性能。
Trigger Scenarios
需要为按钮或表单控件添加点击触觉反馈时
实现移动端App UI的微交互效果时
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


