重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
medium-300-500ms by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill medium-300-500ms300-500ms 的范围是标准动画领域。时长足以被观察,又短到不会阻碍流程。这是实现有意义运动的主力时长。
挤压与拉伸:充分表达 - 用于弹跳、弹性元素的可见形变。15-25% 的拉伸感自然。
预备动作:清晰的准备 - 在主动作前有 80-120ms 的预备动作。先向后拉,再向前推。
演出布局:可实现多元素编排 - 主要动作引领,辅助元素跟随。
逐帧与姿势对应:推荐姿势对应法 - 定义关键位置,让缓动处理中间帧。
跟随动作:至关重要 - 重叠动作,各部分以不同速率稳定下来。
慢入慢出:自然感的关键 - 两个方向都需要适当的缓动。
弧形运动:自然的运动路径 - 元素应沿着符合真实物理的曲线运动。
次要动作:多个次要动作 - 头发跟随头部,阴影跟随物体。
节奏:在 60fps 下为 18-30 帧。足够的帧数来实现细腻的运动。
夸张:可运用全部范围 - 与品牌个性和情境相匹配。
扎实的描绘:复杂的变换可行 - 3D 旋转、透视变换。
吸引力:定义角色特征的动画 - 这是品牌个性的体现之处。
/* 平滑、自然的运动 */
transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
/* 富有表现力的入场 */
transition: all 450ms cubic-bezier(0.16, 1, 0.3, 1);
/* 弹跳、活泼 */
transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
/* 戏剧性的减速 */
transition: all 350ms cubic-bezier(0, 0.55, 0.45, 1);
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
.page-enter {
opacity: 0;
transform: translateX(30px);
}
.page-enter-active {
opacity: 1;
transform: translateX(0);
transition: opacity 350ms ease-out,
transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* 错开的子元素 */
.list-item {
transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.list-item:nth-child(1) { transition-delay: 0ms; }
.list-item:nth-child(2) { transition-delay: 50ms; }
.list-item:nth-child(3) { transition-delay: 100ms; }
中等时长是动画成为叙事的地方。用户会观看、理解并记住这些动画。在此处投入精力进行打磨 - 它定义了感知到的质量。
每周安装量
48
代码仓库
GitHub 星标数
20
首次出现
2026 年 1 月 24 日
安全审计
安装于
codex40
gemini-cli37
opencode37
cursor36
github-copilot34
claude-code33
The 300-500ms range is standard animation territory. Long enough to be watched, short enough to not impede flow. The workhorse duration for meaningful motion.
Squash & Stretch: Full expression - visible deformation for bouncing, elastic elements. 15-25% stretch feels natural.
Anticipation : Clear preparation - 80-120ms anticipation before main action. Pull back before push forward.
Staging : Multi-element choreography possible - primary action leads, supporting elements follow.
Straight Ahead/Pose to Pose : Pose to pose recommended - define key positions, let easing handle in-betweens.
Follow Through : Essential - overlapping action where parts settle at different rates.
Slow In/Slow Out : Critical for naturalism - both directions need proper easing.
Arcs : Natural motion paths - elements should travel on curves matching real physics.
Secondary Action : Multiple secondary actions - hair follows head, shadow follows object.
Timing : 18-30 frames at 60fps. Enough frames for nuanced motion.
Exaggeration : Full range available - match to brand personality and context.
Solid Drawing : Complex transforms work - 3D rotations, perspective shifts.
Appeal : Character-defining animations - this is where brand personality lives.
/* Smooth, natural motion */
transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
/* Expressive entrance */
transition: all 450ms cubic-bezier(0.16, 1, 0.3, 1);
/* Bouncy, playful */
transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
/* Dramatic deceleration */
transition: all 350ms cubic-bezier(0, 0.55, 0.45, 1);
.page-enter {
opacity: 0;
transform: translateX(30px);
}
.page-enter-active {
opacity: 1;
transform: translateX(0);
transition: opacity 350ms ease-out,
transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
/* Staggered children */
.list-item {
transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.list-item:nth-child(1) { transition-delay: 0ms; }
.list-item:nth-child(2) { transition-delay: 50ms; }
.list-item:nth-child(3) { transition-delay: 100ms; }
Medium duration is where animation becomes storytelling. Users watch, understand, and remember these animations. Invest in polish here - it defines perceived quality.
Weekly Installs
48
Repository
GitHub Stars
20
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex40
gemini-cli37
opencode37
cursor36
github-copilot34
claude-code33
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
127,000 周安装
Kotlin Spring Boot 最佳实践指南:构建高质量后端应用
8,200 周安装
EditorConfig 专家 - 自动生成最佳实践配置文件,统一团队代码风格
8,200 周安装
Boost Prompt - AI 提示词优化助手 | GitHub Copilot 增强工具 | 提升编程效率
8,100 周安装
股票与加密货币分析工具 - 投资组合管理与技术分析(雅虎财经数据)
8,200 周安装
Google Workspace CLI 教程:使用 gws 命令创建反馈表单并邮件分享
8,300 周安装
Solidity 智能合约安全指南:防范重入攻击、溢出漏洞与访问控制
8,200 周安装