重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
entrance-animations by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill entrance-animations在元素进入视图时应用迪士尼的 12 条动画原则。
挤压与拉伸:入场时从 95% 缩放到 100%。让元素感觉有弹性,而非僵硬。
预备动作:从略低于/小于最终位置开始。向上滑动前先偏移 -10px 以创造期待感。
舞台布局:从用户注意力的方向进入。新列表项从顶部进入,模态框从中心进入,侧边栏从其边缘进入。
逐帧动画与姿势衔接:使用姿势衔接。定义清晰的起始状态(不可见、偏移)和结束状态(可见、定位)。
跟随与重叠动作:子元素应略有延迟。容器先进入,内容在 50-100ms 后进入。
慢入慢出:入场时使用缓出效果。快速开始,柔和着陆:cubic-bezier(0, 0, 0.2, 1)。
弧线运动:结合 Y 轴和 X 轴移动。不要只淡入——在微妙的曲线上滑入。
次要动作:将淡入与缩放配对。不透明度从 0 到 1 的同时,缩放从 0.95 到 1,增加深度感。
时间节奏:
夸张手法:缩放可以从 0.8 开始以获得戏剧性效果,从 0.95 开始以获得微妙的润色。
扎实的描绘:保持一致的 3D 空间感。从"后面"进入的元素应放大;从侧面进入的元素应滑动。
吸引力:入场应让人感觉友好。避免突兀的弹出——一切都值得一个介绍。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 元素类型 | 持续时间 | 缓动函数 | 延迟模式 |
|---|
| 提示框/警告 | 150ms | ease-out | 无 |
| 模态框 | 250ms | ease-out | 内容 +50ms |
| 卡片/项目 | 200ms | ease-out | 无 |
| 列表项 | 200ms | ease-out | 错开 50ms |
| 页面区域 | 300ms | ease-out | 错开 100ms |
| 主视觉内容 | 400ms | ease-out | 错开 150ms |
.entering {
animation: entrance 250ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
@keyframes entrance {
from {
opacity: 0;
transform: translateY(10px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
对于多个项目:delay = index * 50ms,整个序列总时间上限为 500ms。
在没有用户主动操作的情况下,错开序列中的项目数切勿超过 5 个。
每周安装量
50
代码仓库
GitHub 星标数
20
首次出现
2026年1月24日
安全审计
安装于
codex43
gemini-cli40
opencode40
cursor39
github-copilot37
claude-code35
Apply Disney's 12 principles when bringing elements into view.
Squash & Stretch: Scale from 95% to 100% on entry. Elements feel elastic, not rigid.
Anticipation : Start slightly below/smaller than final position. A -10px offset before sliding up creates expectation.
Staging : Enter from the direction of user attention. New list items from the top, modals from center, sidebars from their edge.
Straight Ahead vs Pose-to-Pose : Use pose-to-pose. Define clear start state (invisible, offset) and end state (visible, positioned).
Follow Through & Overlapping: Child elements should lag slightly. Container enters first, content 50-100ms after.
Slow In/Slow Out : Use ease-out for entrances. Fast start, gentle landing: cubic-bezier(0, 0, 0.2, 1).
Arcs : Combine Y and X movement. Don't just fade - slide in on a subtle curve.
Secondary Action : Pair fade with scale. Opacity 0→1 while scaling 0.95→1 adds depth.
Timing :
Exaggeration : Scale can start at 0.8 for dramatic effect, 0.95 for subtle polish.
Solid Drawing : Maintain consistent 3D space. Elements entering from "behind" should scale up; from sides should slide.
Appeal : Entrances should feel welcoming. Avoid jarring pops - everything deserves an introduction.
| Element Type | Duration | Easing | Delay Pattern |
|---|---|---|---|
| Toast/Alert | 150ms | ease-out | None |
| Modal | 250ms | ease-out | Content +50ms |
| Card/Item | 200ms | ease-out | None |
| List Items | 200ms | ease-out | Stagger 50ms |
| Page Section | 300ms | ease-out | Stagger 100ms |
| Hero Content | 400ms | ease-out | Stagger 150ms |
.entering {
animation: entrance 250ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
@keyframes entrance {
from {
opacity: 0;
transform: translateY(10px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
For multiple items: delay = index * 50ms, cap at 500ms total sequence time.
Never exceed 5 items in a stagger sequence without user-initiated action.
Weekly Installs
50
Repository
GitHub Stars
20
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex43
gemini-cli40
opencode40
cursor39
github-copilot37
claude-code35
React视图过渡API使用指南:实现原生浏览器动画与状态管理
8,400 周安装
加密货币市场情绪分析工具 - 聚合RSS新闻并计算情绪分数
316 周安装
React Three Fiber 纹理加载教程:useTexture Hook 与 useLoader 完整指南
317 周安装
技术债务分析与修复指南:识别、量化、优先处理代码重构与优化
315 周安装
Slack GIF 创建工具 - 优化尺寸、帧率、颜色数,生成符合 Slack 要求的动态表情符号
313 周安装
React Native与Expo移动开发专家 | 跨平台iOS/Android应用开发与优化
313 周安装
GrepAI 快速入门:5分钟安装配置,实现代码语义搜索与智能分析
316 周安装