Design gestalt common fate

From Intense-Visions/harness-engineering · View interactive version

Design gestalt common fate is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Motion grouping — elements that move or change together are perceived as a unit, with implications for animation, loading states, and batch operations

How to use this skill

Skill file

Gestalt Common Fate

Motion grouping — elements that move or change together are perceived as a unit, with implications for animation, loading states, and batch operations

When to Use

Instructions

  1. Understand the law. The Gestalt principle of common fate states that elements moving in the same direction, at the same speed, at the same time are perceived as a single group. This principle extends beyond literal motion to any synchronized change: opacity transitions, color shifts, scale transforms. If elements change together, they are perceived as a unit. If one element changes while others remain static, it is perceived as separate from the group.

Why this matters for interfaces: Digital interfaces are temporal — they change over time. Every animation, transition, and state change is an opportunity to communicate grouping through common fate. A well-designed animation tells the user "these things belong together" just as powerfully as proximity or similarity.

  1. Synchronize grouped elements in animations. When elements belong to the same group, their animations must share timing parameters: same duration, same easing curve, same delay. Any deviation breaks common fate and makes the elements read as independent.

Worked example — Spotify horizontal card carousel:

Worked example — Material Design container transform:

Decision procedure for animation synchronization:

1. Identify which elements form a group

2. Assign identical duration, easing, and delay values to all elements in the group

3. If using staggered entrance (elements appearing one by one), the stagger is the delay offset — but once visible, all elements must animate identically

4. Test by recording the animation and stepping through frame-by-frame — any visual separation between group members indicates a timing mismatch

  1. Use staggered animation to imply sequence, not grouping. Stagger (different delay values) creates an ordered sequence. This is the opposite of common fate — it makes elements feel sequential rather than grouped. Use stagger deliberately.

Worked example — list item entrance animations:

When to stagger vs. synchronize:

  1. Apply common fate to loading states. Loading indicators that animate together signal "this is one loading process." Separate animations signal "these are independent processes."

Worked example — skeleton screen shimmer (Facebook/Meta pattern):

Worked example — individual spinners (anti-pattern comparison):

  1. Apply common fate to batch operations. When a user selects multiple items and performs a batch action, the selected items must respond as a group.

Worked example — Gmail bulk email actions:

Worked example — Figma multi-select drag:

  1. Use broken common fate to signal state divergence. When an element leaves a group (deselection, error, completion), breaking its common fate signals the departure.

Worked example — Trello card drag between lists:

Worked example — multi-step form with validation errors:

Details

Timing Parameters for Common Fate

Animation timing must be precise for common fate to work. Approximate values create subtle unease.

Synchronized motion — required parameters:

Staggered sequence — acceptable parameters:

Common Fate in Micro-Interactions

Common fate operates at the micro-interaction level too:

Hover effects on grouped elements:

Toggle state changes:

Button press feedback:

Common Fate and Performance

Synchronized animation requires consistent frame rates. If the browser drops frames on one element but not another, their common fate breaks.

Implementation strategies for reliable synchronization:

Anti-Patterns

  1. Desynchronized loading indicators. Multiple spinners, progress bars, or shimmer effects running at different speeds or phases. Three cards each with their own spinner, started at different times, create three independent "loading" signals. The user must track three separate processes. Fix: use a single shared animation (one shimmer gradient, one skeleton, one progress indicator) or synchronize all indicators to the same phase using a shared CSS animation-delay: 0s.
  1. Inconsistent batch animation. Selecting 5 items and archiving them, but each item exits with a slightly different duration or easing because the animation was applied per-element without shared timing. Fix: calculate all target positions first, then apply the animation to all elements in a single requestAnimationFrame tick with identical timing parameters.
  1. False common fate on unrelated elements. Two unrelated UI elements that happen to animate at the same time with the same parameters. A sidebar closing while a toast appears — if both happen to use a 200ms slide animation, they feel related when they are not. Fix: use different timing for unrelated simultaneous animations. Give the sidebar 250ms and the toast 150ms. The timing difference breaks the false common fate.
  1. Breaking common fate during scroll. Elements in a scrollable container that do not scroll together. A "sticky" header inside a scroll container that stutters (jumps between frames) appears to detach from the scrolling content, breaking the common fate of the scroll group. Fix: use CSS position: sticky (GPU-composited) rather than JavaScript-based scroll listeners that can lag by one or more frames.

Real-World Examples

Spotify Horizontal Carousel:

Apple iOS Page Transitions:

Material Design Shared Element Transitions:

Airbnb Map Pin Clustering:

Linear's Batch Operations:

Source

Process

  1. Read the instructions and examples in this document.
  2. Apply the patterns to your implementation, adapting to your specific context.
  3. Verify your implementation against the details and edge cases listed above.

Harness Integration

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.