Transition Sequences

dylantarre/animation-principles/skills/05-by-animation-type/transition-sequences

作者 dylantarre83597134ba8f无许可证99 个星标收录于 2026年10月8日更新于 2026年10月8日仓库9个月前更新

Use when orchestrating multi-step animations - page transitions, onboarding flows, wizard steps, complex reveals, or any choreographed animation sequence.

仅含说明Design & Creative
AI 生成的概览

运用迪士尼十二项动画原则,指导多步骤编排动画的设计。

功能
该技能为多步骤动画的编排提供指导,例如页面切换、引导流程、向导步骤和复杂揭示效果。它把迪士尼十二项动画原则对应到序列化运动上,给出按序列类型划分的时长建议,以及 CSS 和 JavaScript 的实现模式。产出内容包括编排指导、时长对照表和用于错峰与重叠过渡的代码片段。
适用场景
在规划或实现多步骤、编排式动画时使用,例如页面切换、引导流程、向导步骤或戏剧性揭示。它适合用来确定步骤重叠比例、总时长和错峰延迟等界面动效参数。
运行要求
无需脚本或特殊工具,仅为说明性指令。实现模式假定使用带 CSS 动画和 JavaScript 的网页前端。

Transition Sequence Animations

Apply Disney's 12 principles to choreographed multi-step motion.

Principle Application

Squash & Stretch: Each element in sequence can compress/expand independently for organic feel.

Anticipation: Sequence starts with a setup phase. Brief pause or gather before motion begins.

Staging: Direct attention through the sequence. Most important element animates first or last.

Straight Ahead vs Pose-to-Pose: Plan keyframes for each step. Map the entire sequence before implementing.

Follow Through & Overlapping: Elements don't move in unison. Stagger starts by 50-100ms. Let motion cascade.

Slow In/Slow Out: Each step eases. The sequence overall should ease too - faster middle, slower ends.

Arcs: Transitions across space follow arcs. Page sliding left curves slightly, not linear slide.

Secondary Action: Primary transition + secondary details. Page slides while elements within fade/scale.

Timing:

  • Step overlap: 30-50% of previous step's duration
  • Total sequence: 300-800ms for UI, up to 1500ms for dramatic
  • Gap between steps: 0-100ms (overlap preferred)

Exaggeration: Sequence itself is exaggeration. Individual steps stay subtle.

Solid Drawing: Maintain spatial consistency. If A goes left, B should come from left.

Appeal: Sequences tell a story. Beginning, middle, end - satisfying resolution.

Timing Recommendations

Sequence TypeTotal DurationStep CountStep Overlap
Tab Change300ms250%
Page Transition500-600ms2-330%
Modal Open400ms340%
Wizard Step400ms250%
Onboarding800-1200ms4-630%
Dramatic Reveal1000-1500ms5-840%

Implementation Patterns

css
/* Staggered sequence */.sequence-item {  opacity: 0;  transform: translateY(20px);  animation: reveal 400ms ease-out forwards;}
.sequence-item:nth-child(1) { animation-delay: 0ms; }.sequence-item:nth-child(2) { animation-delay: 80ms; }.sequence-item:nth-child(3) { animation-delay: 160ms; }.sequence-item:nth-child(4) { animation-delay: 240ms; }
@keyframes reveal {  to {    opacity: 1;    transform: translateY(0);  }}
/* Page transition choreography */.page-exit {  animation: page-out 250ms ease-in forwards;}
.page-enter {  animation: page-in 300ms ease-out 200ms forwards;}
@keyframes page-out {  to { opacity: 0; transform: translateX(-30px); }}
@keyframes page-in {  from { opacity: 0; transform: translateX(30px); }  to { opacity: 1; transform: translateX(0); }}

Sequence Orchestration Formula

javascript
// Calculate stagger delaysconst items = document.querySelectorAll('.sequence-item');const totalDuration = 600; // msconst overlap = 0.4; // 40% overlap
items.forEach((item, index) => {  const stepDuration = totalDuration / items.length;  const delay = index * stepDuration * (1 - overlap);  item.style.animationDelay = `${delay}ms`;});

Key Rules

  1. Overlap steps 30-50% - no gaps, no simultaneous starts
  2. Total sequence under 800ms for functional UI
  3. Test at 0.5x speed to verify choreography
  4. Provide skip option for sequences over 500ms
  5. prefers-reduced-motion: instant state change, no sequence

来源与署名

来源:dylantarre/animation-principles位于skills/05-by-animation-type/transition-sequences提交8359713

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架