重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
cards-containers by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill cards-containers将迪士尼的 12 条动画原则应用于卡片和容器,以打造引人入胜、富有层次感的界面。
卡片在开始拖动时可以轻微压缩,释放时可以拉伸。保持最小幅度:最大 2-3% 的缩放变化。
在将卡片展开到详情视图之前,先将其短暂缩小(0.98 倍)50 毫秒,然后再展开。为用户即将发生的转换做好准备。
正在交互的卡片应通过 z-index 和阴影效果提升到其他卡片之上。调暗或模糊背景卡片以集中注意力。
定义清晰的状态:静止、悬停、选中、展开。在这些定义的关键帧之间进行姿态对应的过渡。
卡片内容(文本、图像、图标)应略微滞后于卡片的移动。错开 20-40 毫秒以获得自然的感觉。
卡片抬起使用 ease-out,卡片落下使用 ease-in-out。切勿使用线性。使用 cubic-bezier(0.25, 0.1, 0.25, 1) 实现平滑抬起。
当卡片重新排序(拖放)时,它们应遵循曲线路径,而不是直线。在移动过程中添加轻微的旋转。
当卡片抬起(主要动作)时,阴影会扩大和模糊(次要动作)。内部的图像可以轻微缩放。边框可以发光。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
悬停阴影可以扩展到正常深度的 2-3 倍。选中的卡片可以抬起 8-12 像素。保持与卡片大小的比例。
缩放时保持一致的圆角半径比例。阴影应始终来自同一光源。保持宽高比。
圆角让人感觉平易近人,微妙的阴影增添高级感。平滑的过渡建立信任。卡片应该感觉像物理对象。
.card {
transition: transform 250ms ease-out,
box-shadow 250ms ease-out;
}
.card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.card-content {
transition: transform 280ms ease-out; /* slight lag */
}
transform: translateY, scale, rotatebox-shadow: 深度和抬起感z-index: 层级filter: 用于背景的模糊效果opacity: 焦点状态每周安装次数
51
代码仓库
GitHub 星标数
20
首次出现
2026 年 1 月 24 日
安全审计
安装于
codex43
opencode40
gemini-cli40
cursor39
github-copilot37
claude-code36
Apply Disney's 12 principles to cards and containers for engaging, dimensional interfaces.
Cards can subtly compress on drag-start and stretch when released. Keep it minimal: 2-3% scale change maximum.
Before expanding a card to detail view, briefly scale down (0.98) for 50ms, then expand. Prepares user for the transformation.
The card being interacted with should lift above others via z-index and shadow. Dim or blur background cards to focus attention.
Define clear states: resting, hovered, selected, expanded. Pose-to-pose transitions between these defined keyframes.
Card content (text, images, icons) should lag slightly behind card movement. Stagger by 20-40ms for natural feel.
Card lifts use ease-out, card settles use ease-in-out. Never linear. cubic-bezier(0.25, 0.1, 0.25, 1) for smooth lifts.
When cards reorder (drag-and-drop), they should follow curved paths, not straight lines. Add slight rotation during movement.
While card lifts (primary), shadow expands and blurs (secondary). Image inside can subtle zoom. Border can glow.
Hover shadows can extend 2-3x normal depth. Selected cards can lift 8-12px. Keep proportional to card size.
Maintain consistent border-radius ratios when scaling. Shadows should always come from same light source. Preserve aspect ratios.
Rounded corners feel approachable, subtle shadows add premium feel. Smooth transitions build trust. Cards should feel like physical objects.
.card {
transition: transform 250ms ease-out,
box-shadow 250ms ease-out;
}
.card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.card-content {
transition: transform 280ms ease-out; /* slight lag */
}
transform: translateY, scale, rotatebox-shadow: depth and liftz-index: layeringfilter: blur for backgroundopacity: focus statesWeekly Installs
51
Repository
GitHub Stars
20
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex43
opencode40
gemini-cli40
cursor39
github-copilot37
claude-code36
React视图过渡API使用指南:实现原生浏览器动画与状态管理
9,100 周安装
软件安全与应用安全快速参考指南:OWASP Top 10 2025、API安全与安全SDLC实践
117 周安装
MCP(模型上下文协议)AI原生服务器开发指南:TypeScript/Python SDK快速构建工具
117 周安装
Python预算分析器:自动分类支出、趋势分析与PDF报告生成工具
116 周安装
Laravel 代码质量保障:测试、静态分析与架构规范最佳实践
116 周安装
SwiftUI iOS设计最佳实践指南:62条规则实现Apple品质界面(iOS 26/Swift 6.2)
117 周安装
行业脉搏分析工具:实时洞察行业趋势、技术与市场动态 | 创业机会识别
44 周安装