Instant 0 100ms

dylantarre/animation-principles/skills/10-by-time-scale/instant-0-100ms

作者 dylantarre83597134ba8f無授權條款99 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫9 個月前更新

Use when building instantaneous UI feedback under 100ms - button presses, toggles, state changes that feel immediate and responsive

僅含說明Design & Creative
AI 產生的概覽

指導 0-100 毫秒的即時介面回饋動畫,用於按鈕按下、開關與狀態變化。

功能
此技能提供設計與實作低於 100 毫秒介面動畫的指引,讓互動感覺即時。它將迪士尼動畫原則對應到極短時長,說明哪些手法可行、哪些不可行,並提出緩動數值與時長建議。它也列出適用情境,並提供按下狀態與開關的 CSS 實作範例。
適用情境
適用於打造即時介面回饋的情境,例如按鈕按下、開關、核取方塊或選項選取、焦點環出現、滑鼠移入顏色變化或觸控漣漪起始。適合以確認操作為目標,而非表現性動態效果的情況。
執行需求
不需要工具、套件或憑證;僅為說明性內容,包含 CSS 範例,沒有指令碼。

Instant Animations (0-100ms)

Animations under 100ms feel instantaneous to users. This duration is for immediate feedback that confirms actions without perceived delay.

Disney Principles at Instant Speed

Works Well

Squash & Stretch: Subtle - 2-5% compression on button press creates tactile feel without visible deformation.

Anticipation: Skip entirely - no time for preparation at this speed.

Staging: Minimal - rely on position/color change, not movement.

Straight Ahead/Pose to Pose: Straight ahead only - too fast for keyframe complexity.

Follow Through: None - motion completes before follow-through registers.

Slow In/Slow Out: Use ease-out only - starts at full speed, slight deceleration.

Arcs: Linear paths only - curves don't register at this speed.

Secondary Action: Skip - brain can't process multiple simultaneous instant changes.

Timing: 1-3 frames maximum. 60fps = 16.67ms per frame.

Exaggeration: Minimal - subtle scale (0.95-1.05) or opacity changes.

Solid Drawing: Focus on color/opacity shifts, not spatial transformation.

Appeal: Crisp, immediate response builds trust and perceived performance.

Doesn't Work

  • Complex multi-step sequences
  • Visible travel distance
  • Rotation beyond 15 degrees
  • Multiple property changes
  • Staged reveals

Easing Recommendations

css
/* Primary choice - immediate start, soft landing */transition: all 50ms ease-out;
/* Alternative - completely linear for state toggles */transition: opacity 80ms linear;
/* Button press feedback */transition: transform 50ms ease-out;

Best Use Cases

  • Button active/pressed states
  • Toggle switches
  • Checkbox/radio selections
  • Focus ring appearance
  • Hover color shifts
  • Touch ripple initiation

Implementation Pattern

css
.button:active {  transform: scale(0.97);  transition: transform 50ms ease-out;}
.toggle-on {  background: var(--active);  transition: background 80ms ease-out;}

Key Insight

At instant speeds, animation serves confirmation, not communication. Users shouldn't consciously perceive the animation - they should feel the interface responding.

來源與署名

來源:dylantarre/animation-principles位於skills/10-by-time-scale/instant-0-100ms提交8359713

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架