Feedback Indicators

dylantarre/animation-principles/skills/05-by-animation-type/feedback-indicators

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

Use when confirming user actions - success checkmarks, error alerts, form validation, save confirmations, or any animation acknowledging what the user did.

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

為勾選標記、錯誤抖動與驗證狀態等介面回饋提示提供動畫設計指引。

功能
將迪士尼十二項動畫原則套用於操作確認回饋,例如成功勾選標記、錯誤提示、表單驗證與儲存確認。它以表格形式提供時長、緩動與自動消失建議,並附上 CSS、SVG 與 JavaScript 實作模式。產出是用于建立這些回饋動畫的設計與程式碼指引。
適用情境
適用於設計或實作確認使用者操作的動畫時,例如成功勾選標記、錯誤抖動、行內驗證或儲存指示器。也適合調整回饋的時長、緩動與自動消失行為。
執行需求
不需要指令碼或套件,僅為說明性指引。除閱讀該技能外,代理不需要任何工具、憑證或網路存取。

Feedback Indicator Animations

Apply Disney's 12 principles to action confirmation animations.

Principle Application

Squash & Stretch: Success checkmarks can scale with overshoot. Compress on draw, expand on complete.

Anticipation: Brief gather before feedback appears. 50ms of preparation before the confirmation.

Staging: Feedback appears at the action location. Button shows checkmark, field shows validation.

Straight Ahead vs Pose-to-Pose: Define feedback states: neutral → processing → success/error.

Follow Through & Overlapping: Icon animates, then label appears. Stagger confirmation elements.

Slow In/Slow Out: Success: ease-out (confident arrival). Error: ease-in-out (shake settles).

Arcs: Checkmarks draw in arcs, not straight lines. Error X's cross naturally.

Secondary Action: Checkmark draws + color shifts + scale bounces for rich feedback.

Timing:

  • Instant feedback: 100-200ms (form validation)
  • Success confirmation: 300-500ms (checkmark draw)
  • Error indication: 400ms (shake + message)
  • Auto-dismiss: 2000-4000ms after appearance

Exaggeration: Success deserves celebration. Overshoot scale to 1.2, bold colors, confident motion.

Solid Drawing: Feedback icons must be clear at a glance. Recognition in 100ms or less.

Appeal: Positive feedback should feel rewarding. Negative feedback firm but not punishing.

Timing Recommendations

Feedback TypeDurationAuto-dismissEasing
Inline Validation150msNoease-out
Checkmark Draw400ms3000msease-out
Success Toast300ms4000msease-out
Error Shake400msNoease-in-out
Error Toast300ms6000msease-out
Save Indicator200ms2000msease-out

Implementation Patterns

css
/* Checkmark draw */.checkmark {  stroke-dasharray: 50;  stroke-dashoffset: 50;  animation: draw-check 400ms ease-out forwards;}
@keyframes draw-check {  to { stroke-dashoffset: 0; }}
/* Success with scale */.success-icon {  animation: success 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;}
@keyframes success {  0% { transform: scale(0); opacity: 0; }  60% { transform: scale(1.2); opacity: 1; }  100% { transform: scale(1); opacity: 1; }}
/* Error shake */.error-shake {  animation: shake 400ms ease-in-out;}
@keyframes shake {  0%, 100% { transform: translateX(0); }  20%, 60% { transform: translateX(-6px); }  40%, 80% { transform: translateX(6px); }}
/* Inline validation */.field-valid {  animation: valid-pop 200ms ease-out;}
@keyframes valid-pop {  0% { transform: scale(0.8); opacity: 0; }  100% { transform: scale(1); opacity: 1; }}

SVG Checkmark Pattern

html
<svg class="checkmark" viewBox="0 0 24 24">  <circle cx="12" cy="12" r="10" fill="#10B981"/>  <path    class="check-path"    d="M7 13l3 3 7-7"    stroke="white"    stroke-width="2"    fill="none"  /></svg>

Auto-Dismiss Pattern

javascript
// Show success, auto-hideelement.classList.add('success-visible');
setTimeout(() => {  element.classList.remove('success-visible');  element.classList.add('success-hidden');}, 3000);

Key Rules

  1. Feedback must appear within 100ms of action
  2. Success states: celebrate briefly, don't linger
  3. Error states: persist until user acknowledges
  4. Always provide text alongside icons for accessibility
  5. prefers-reduced-motion: instant state, no animation

來源與署名

來源:dylantarre/animation-principles位於skills/05-by-animation-type/feedback-indicators提交8359713

授權條款: 無授權條款

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

檢舉或申請下架