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 範例需要網頁前端環境。

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 從公開儲存庫中收錄這些內容。

檢舉或申請下架