重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
modals-dialogs by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill modals-dialogs将迪士尼的 12 条动画原则应用于模态框,以实现流畅、不突兀的过渡效果。
模态框在进入时可以从 0.9 缩放到 1.0,产生微妙的扩张感。退出时反向进行。保持微妙以维持专业感。
触发元素(按钮)应在模态框出现前做出反应。触发元素先短暂缩小,然后模态框从该点出现。
背景幕变暗(不透明度 0.5-0.7)以将注意力集中在模态框上。背景内容可以轻微模糊(4-8px)。模态框是主角。
定义状态:隐藏、进入中、可见、退出中。为每个状态定义清晰的关键帧。姿态对应确保动画可预测、可控制。
模态框容器先到达,内容在 50-100ms 后淡入。关闭按钮在结束时可以有轻微的弹跳。表单字段错开显示。
进入:ease-out(减速进入)。退出:ease-in(加速退出)。使用 cubic-bezier(0.16, 1, 0.3, 1) 实现平滑、有弹性的进入效果。
如果模态框源自一个按钮,应向中心做弧形运动而非直线。创造更自然的运动路径。
当模态框缩放进入时(主要动作),背景幕淡入(次要动作),内容错开显示(第三级动作)。每个动作相互支持而不冲突。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
重要警报使用戏剧性的入场效果。在稳定到 1.0 之前,可以轻微超调缩放(1.02)。错误模态框可以短暂抖动。
模态框阴影应与界面光源匹配。保持一致的边框半径。动画期间内容绝不能溢出。
平滑的入场感觉精致。源点动画感觉有联系。突兀的模态框感觉不协调。在模态框过渡效果上投入。
.modal-backdrop {
transition: opacity 250ms ease-out;
}
.modal {
animation: modalEnter 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEnter {
from {
opacity: 0;
transform: scale(0.9) translateY(20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
transform: 缩放,平移(源点)opacity: 淡入/淡出backdrop-filter: 模糊背景animation: 关键帧序列transform-origin: 源点每周安装量
50
代码仓库
GitHub 星标
20
首次出现
2026年1月24日
安全审计
安装于
codex43
gemini-cli40
opencode40
cursor38
github-copilot37
cline32
Apply Disney's 12 principles to modals for seamless, non-jarring transitions.
Modal can scale from 0.9 to 1.0 on enter, creating a subtle expansion feel. Exit reverses. Keep it subtle to maintain professionalism.
Trigger element (button) should react before modal appears. Brief scale-down of trigger, then modal emerges from that point.
Backdrop dims (0.5-0.7 opacity) to focus attention on modal. Background content can blur slightly (4-8px). Modal is the star.
Define states: hidden, entering, visible, exiting. Clear keyframes for each. Pose-to-pose ensures predictable, controllable animation.
Modal container arrives first, content fades in 50-100ms after. Close button can have slight bounce at end. Stagger form fields.
Enter: ease-out (decelerates in). Exit: ease-in (accelerates out). cubic-bezier(0.16, 1, 0.3, 1) for smooth, bouncy enter.
If modal originates from a button, arc toward center rather than straight line. Creates more organic movement path.
While modal scales in (primary), backdrop fades (secondary), content staggers (tertiary). Each supports without competing.
Dramatic entrance for important alerts. Slight overshoot scale (1.02) before settling at 1.0. Error modals can shake briefly.
Modal shadows should match interface light source. Maintain consistent border-radius. Content should never overflow during animation.
Smooth entrances feel polished. Origin-point animation feels connected. Abrupt modals feel jarring. Invest in modal transitions.
.modal-backdrop {
transition: opacity 250ms ease-out;
}
.modal {
animation: modalEnter 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalEnter {
from {
opacity: 0;
transform: scale(0.9) translateY(20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
transform: scale, translate (origin point)opacity: fade in/outbackdrop-filter: blur backgroundanimation: keyframe sequencestransform-origin: source pointWeekly Installs
50
Repository
GitHub Stars
20
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex43
gemini-cli40
opencode40
cursor38
github-copilot37
cline32
前端设计系统技能:生产级UI设计、设计令牌与可访问性指南
8,500 周安装
Context7自动研究技能:为Claude Code自动获取最新库/框架文档的API工具
309 周安装
Python 3.14+ 专家最佳实践与代码审查指南:生产级代码核心要点
309 周安装
Azure 工作负载自动升级评估工具 - 支持 Functions、App Service 计划与 SKU 迁移
309 周安装
Motion Designer动态设计指南:掌握迪士尼12条动画原则,打造专业UI/UX动画效果
312 周安装
LobeChat i18n 国际化指南:使用 react-i18next 实现多语言支持与最佳实践
319 周安装
AI文案撰写技能:专业品牌文案与转化文案撰写指南 | 营销内容创作
315 周安装