重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
small-200-300ms by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill small-200-300ms在 200-300 毫秒的区间内,用户能够有意识地感知到运动。这个时长连接了微交互和完整的动画效果,非常适合用于 UI 状态变化。
挤压与拉伸:可见但有所克制——在趣味性界面中为 10-15%,在专业界面中为 5%。
预备动作:短暂的蓄力是有效的——40-60 毫秒的准备动作能增强 200 毫秒主动作的效果。
演出布局:清晰的层级结构——主要元素先行,次要元素延迟 50-100 毫秒跟随。
逐帧动画与关键帧动画:更推荐关键帧动画——关键帧能创造出精致的运动效果。
跟随动作:明显的过冲——超过目标点 5-10% 能增加生动感。
慢入慢出:完整的缓动曲线——无论是 ease-in-out 还是自定义贝塞尔曲线都能表现出色。
弧形运动:自然的曲线能增强效果——元素可以沿弧线而非直线运动。
次要动作:一到两个次要动作——例如淡入淡出 + 缩放,移动 + 旋转。
时间节奏:在 60fps 下为 12-18 帧。流畅、有目的性的运动。
夸张手法:从适度到明显——取决于品牌个性。
扎实的描绘:完整的变换组合——平移、缩放、旋转同时进行。
吸引力:有意识的动画能塑造品牌个性。
/* 标准平滑过渡 */
transition: all 250ms ease-out;
/* 模态框/卡片出现 - 自信的抵达感 */
transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
/* 活泼有弹性的个性 */
transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
/* 专业、微妙 */
transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1);
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
.modal {
opacity: 0;
transform: translateY(20px) scale(0.95);
transition: opacity 200ms ease-out,
transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.open {
opacity: 1;
transform: translateY(0) scale(1);
}
.card-expand {
transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
短时过渡动画是可见且能被理解的。用户会追踪运动过程,他们的大脑会处理空间关系。利用这一点来引导注意力和传达层级结构。
每周安装量
47
代码仓库
GitHub 星标数
20
首次出现
2026 年 1 月 24 日
安全审计
安装于
codex39
gemini-cli36
cursor36
opencode36
github-copilot33
claude-code31
At 200-300ms, users consciously perceive motion. This duration bridges micro-interactions and full animations - ideal for UI state changes.
Squash & Stretch: Visible but restrained - 10-15% for playful interfaces, 5% for professional.
Anticipation : Brief wind-up works - 40-60ms preparation enhances 200ms main action.
Staging : Clear hierarchy - primary element leads, secondary follows by 50-100ms.
Straight Ahead/Pose to Pose : Pose to pose preferred - keyframes create polished motion.
Follow Through : Noticeable overshoot - 5-10% past target adds life.
Slow In/Slow Out : Full easing curves - both ease-in-out and custom beziers shine.
Arcs : Natural curves enhance - elements can travel on arcs rather than straight lines.
Secondary Action : One or two secondary actions - fade + scale, move + rotate.
Timing : 12-18 frames at 60fps. Smooth, deliberate motion.
Exaggeration : Moderate to pronounced - depends on brand personality.
Solid Drawing : Full transform combinations - translate, scale, rotate together.
Appeal : Conscious animation that builds brand character.
/* Standard smooth transition */
transition: all 250ms ease-out;
/* Modal/card appearance - confident arrival */
transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
/* Bouncy personality */
transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
/* Professional, subtle */
transition: all 220ms cubic-bezier(0.4, 0, 0.2, 1);
.modal {
opacity: 0;
transform: translateY(20px) scale(0.95);
transition: opacity 200ms ease-out,
transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.open {
opacity: 1;
transform: translateY(0) scale(1);
}
.card-expand {
transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
Small transitions are seen and understood. Users track the motion and their brain processes the spatial relationship. Use this to guide attention and communicate hierarchy.
Weekly Installs
47
Repository
GitHub Stars
20
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex39
gemini-cli36
cursor36
opencode36
github-copilot33
claude-code31
React视图过渡API使用指南:实现原生浏览器动画与状态管理
9,100 周安装