重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
forms-inputs by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill forms-inputs将迪士尼的 12 条动画原则应用于表单设计,以提供清晰的反馈和愉悦的交互体验。
输入框在获得焦点时可以轻微扩展(高度增加 1-2 像素)。提交按钮在点击时压缩。复选框在切换时产生弹跳效果。
标签在用户输入前上浮。焦点环在内容输入前出现。为用户输入动作做好准备。
获得焦点的输入框应在视觉上突出:边框颜色、阴影、标签位置。其他字段可以略微变暗。引导注意力。
定义输入状态:默认、焦点、已填充、有效、无效、禁用。为每个状态设定清晰的姿势,并伴有平滑的过渡。
浮动标签在到达最终位置后稳定下来。验证图标可以轻微弹跳。字符计数器以微妙的动作更新。
焦点过渡:ease-out。验证反馈:ease-in-out。标签浮动:cubic-bezier(0.4, 0, 0.2, 1)。
浮动标签在上移过程中应呈轻微弧线,而非直线运动。为机械动作增添有机感。
边框高亮(主要动作)时,标签浮动(次要动作),辅助文字出现(第三级动作)。协调动作而不致混乱。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
错误状态可以抖动(4-6 像素,2-3 次)。成功状态可以短暂地脉动绿色。无效输入应获得清晰、明显的反馈。
保持边框半径的一致性。标签字体在变换过程中应保持清晰。图标应按比例缩放。
响应式表单感觉现代。微动画引导用户。令人满意的反馈减少表单放弃率。值得投入。
.input-field {
transition: border-color 150ms ease-out,
box-shadow 150ms ease-out;
}
.floating-label {
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
font-size 200ms ease-out,
color 150ms ease-out;
}
.input-field:focus + .floating-label {
transform: translateY(-24px) scale(0.85);
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
transform: translateY(标签),translateX(抖动)border-color: 状态指示box-shadow: 焦点环color: 标签/文本状态opacity: 辅助文字、图标每周安装量
56
代码仓库
GitHub 星标数
22
首次出现
2026 年 1 月 24 日
安全审计
安装于
codex48
opencode45
gemini-cli45
cursor45
github-copilot42
amp37
Apply Disney's 12 principles to forms for clear feedback and delightful interactions.
Input fields can subtly expand on focus (1-2px height). Submit button compresses on click. Checkboxes bounce on toggle.
Label floats up before user types. Focus ring appears before content entry. Prepares user for input action.
Focused input should be visually prominent: border color, shadow, label position. Other fields can slightly dim. Guide attention.
Define input states: default, focus, filled, valid, invalid, disabled. Clear poses for each state with smooth transitions.
Floating label settles after reaching final position. Validation icon can bounce slightly. Character counter updates with subtle motion.
Focus transitions: ease-out. Validation feedback: ease-in-out. Label float: cubic-bezier(0.4, 0, 0.2, 1).
Floating labels should arc slightly during upward movement, not straight line. Adds organic feel to mechanical action.
While border highlights (primary), label floats (secondary), helper text appears (tertiary). Coordinate without overwhelming.
Error states can shake (4-6px, 2-3 times). Success states can pulse green briefly. Invalid inputs deserve clear, noticeable feedback.
Maintain border-radius consistency. Label typography should stay crisp during transform. Icons should scale proportionally.
Responsive forms feel modern. Micro-animations guide users. Satisfying feedback reduces form abandonment. Worth the investment.
.input-field {
transition: border-color 150ms ease-out,
box-shadow 150ms ease-out;
}
.floating-label {
transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
font-size 200ms ease-out,
color 150ms ease-out;
}
.input-field:focus + .floating-label {
transform: translateY(-24px) scale(0.85);
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-5px); }
75% { transform: translateX(5px); }
}
transform: translateY (label), translateX (shake)border-color: state indicationbox-shadow: focus ringscolor: label/text statesopacity: helper text, iconsWeekly Installs
56
Repository
GitHub Stars
22
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex48
opencode45
gemini-cli45
cursor45
github-copilot42
amp37
React视图过渡API使用指南:实现原生浏览器动画与状态管理
9,100 周安装
PyLabRobot:Python实验室自动化SDK,统一控制移液机器人、酶标仪等设备
201 周安装
高级DevOps工具包:自动化流水线生成、Terraform脚手架与部署管理
196 周安装
文档审阅工具 review-docs:AI 驱动的技术文档评估与优化解决方案
197 周安装
Angular专家指南:现代Signals、独立组件、无Zone应用与SSR/水合技术
199 周安装
PowerSync 技能:快速接入数据库同步,CLI 自动化配置指南
201 周安装
DeepWiki:AI生成GitHub仓库文档工具,支持MCP协议快速查询代码解释与架构
200 周安装