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 从公开仓库中收录这些内容。

举报或申请下架