Lists Grids

dylantarre/animation-principles/skills/07-by-ui-element/lists-grids

作者 dylantarre83597134ba8f无许可证99 个星标收录于 2026年10月8日更新于 2026年10月8日仓库9个月前更新

Use when animating lists, grids, tables, or collections of items to create smooth ordering, filtering, and loading states

仅含说明Design & Creative
AI 生成的概览

运用迪士尼动画十二原则指导列表、网格和表格动画,并提供 CSS 时序与错峰建议。

功能
该技能为列表、网格、表格及项目集合的动画提供设计指导。它将迪士尼动画十二原则对应到重排序、筛选和加载等界面行为,并给出推荐的时序数值以及项目进入、退出和错峰的 CSS 代码片段。产出是一套动画原则与实现说明,而非可直接运行的成品。
适用场景
在规划或优化列表、网格、表格或项目集合的动效时使用。适用于平滑排序、筛选、加载状态或项目错峰进入等任务。当需要为这类过渡获取具体的时序与缓动建议时也很有用。
运行要求
无需脚本或特殊工具,该技能仅为说明性内容。应用其中的 CSS 示例需要 Web 前端环境。

List & Grid Animation Principles

Apply Disney's 12 principles to lists and grids for smooth, organized motion.

Principles Applied to Lists & Grids

1. Squash & Stretch

List items compress slightly when grabbed for reorder. Grid items can stretch when expanding to fill space on filter.

2. Anticipation

Before list reorders, items briefly compress. Before filter removes items, they can shrink slightly. Prepares for change.

3. Staging

Item being dragged lifts above others (z-index + shadow). Filtered results highlight while others fade. Guide eye to relevant items.

4. Straight Ahead & Pose to Pose

Define states: entering, resting, reordering, exiting. Use pose-to-pose for predictable, controllable list animations.

5. Follow Through & Overlapping Action

Stagger item entrance: first item leads, others follow (30-50ms delay). Content within items lags behind item container.

6. Ease In & Ease Out

Item enter: ease-out. Item exit: ease-in. Reorder: ease-in-out. Stagger easing should feel like a wave, not mechanical.

7. Arcs

Reordering items should follow curved paths, not straight lines. Adds personality and organic feel to grid shuffles.

8. Secondary Action

While item moves (primary), placeholder appears (secondary), other items shift (tertiary). Coordinate the ensemble.

9. Timing

  • Stagger delay: 30-75ms per item
  • Item enter: 200-300ms
  • Item exit: 150-200ms
  • Reorder: 250-350ms
  • Filter shuffle: 300-400ms
  • Max total stagger: 500-800ms

10. Exaggeration

Dramatic filter transitions can scale items to 0 before removing. New items can overshoot position slightly. Make sorting visible.

11. Solid Drawing

Maintain consistent spacing during animations. Grid gaps should stay uniform. Item proportions should remain stable during transforms.

12. Appeal

Smooth list animations feel premium. Jarring reorders feel broken. Staggered entrances guide attention naturally. Users notice quality.

CSS Implementation

css
.list-item {  animation: itemEnter 250ms ease-out backwards;}
.list-item:nth-child(1) { animation-delay: 0ms; }.list-item:nth-child(2) { animation-delay: 50ms; }.list-item:nth-child(3) { animation-delay: 100ms; }/* continue pattern */
@keyframes itemEnter {  from {    opacity: 0;    transform: translateY(20px);  }  to {    opacity: 1;    transform: translateY(0);  }}
.grid-item {  transition: transform 300ms ease-in-out,              opacity 200ms ease-out;}

Key Properties

  • transform: translate, scale
  • opacity: enter/exit
  • animation-delay: stagger
  • grid-template: layout shifts
  • order: reordering

来源与署名

来源:dylantarre/animation-principles位于skills/07-by-ui-element/lists-grids提交8359713

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架