Timeline Component - UX Specification
This document defines the complete UX rules and specifications for the Jig Step Timeline component.
Table of Contents
- Overview
- Timeline Modes
- Step Tiles
- Transition Handles
- Animation Groups
- Selection Model
- Multi-Selection
- Autoplay System
- Wrap-Around Transition
- Options Menu
- Autoplay Settings Popup
- Validation Rules
- Visual Specifications
1. Overview
The timeline is a horizontal strip displaying all steps in a Jig. Users can navigate between steps, configure transitions, and create animation groups.
Key Concepts
- Steps: Individual states/views in the Jig (numbered 1, 2, 3...)
- Transitions: Connections between steps defining how to advance
- Animation Groups: Consecutive steps that play together as a unit
2. Timeline Modes
Default Mode
| Element | Behavior |
| Transition handles | Hidden |
| Animation groups | Subtle styling (light blue background, no label) |
| Step gap | 8px between steps outside groups |
| Step gap in groups | 4px between steps inside animation groups |
| Step click | Navigates to that step |
| Edit button | Shows pencil icon |
Edit Mode
| Element | Behavior |
| Transition handles | Visible |
| Animation groups | Full blue wrapper with label below |
| Step gap | 8px (handles appear between steps) |
| Options menu | Visible |
| Autoplay settings button | Visible |
| Edit button | Shows checkmark icon |
Mode Transitions
Entering Edit Mode:
- Click Edit toggle button (pencil icon)
- Click any transition handle
Exiting Edit Mode:
- Click Edit toggle button (checkmark icon)
- Click on 3D canvas
- Press Escape key
On Exit - Clear:
- Selected transition
- Selected animation
- Focused transition
- Multi-selected transitions
- Options menu (close)
3. Step Tiles
Visual States
| State | Appearance |
| Default | White background, subtle shadow |
| Focus | Blue border (full opacity), enhanced shadow |
| Multi-selected | Blue border (40% opacity) |
| Focus + Multi-selected | Focus style wins (full opacity) |
Click Behaviors
| Action | Result |
| Click | Select only this step, clear multi-selection, navigate 3D view |
| Shift+Click | Extend selection from focus to clicked (range) |
| Cmd/Ctrl+Click | Toggle step in multi-selection, move focus to clicked |
Focus Rules
- A step shows focus styling only when NO transition or animation is selected
- Focus step is the "anchor" for Shift+Click range selection
- There is always exactly one focus step (never none)
4. Transition Handles
Shape Meanings
| Shape | Trigger Type | Meaning |
| Circle | Manual | User must click to advance |
| Triangle (pointing right) | Autoplay | Auto-advances after delay |
Visual States
| State | Appearance |
| Idle (manual) | Small white circle |
| Idle (autoplay) | Small white triangle |
| Hover | Expands to rounded rectangle with arrow icon |
| Selected | Blue rounded rectangle with white arrow |
| Focus | Light blue background, blue arrow |
| Multi-selected | Light blue background (40% opacity) |
| Wrap-around | Dashed border, lighter background |
Click Behaviors (Edit Mode Only)
| Action | Result |
| Click | Select this transition, show Transition panel |
| Shift+Click | Extend selection from focus transition to clicked |
| Cmd/Ctrl+Click | Toggle transition in multi-selection |
Visibility Rules
- Hidden in Default mode
- Visible in Edit mode
- Clicking a handle when in Default mode auto-enters Edit mode
5. Animation Groups
Visual Appearance
Default Mode:
- Light blue background (12% opacity)
- Rounded container
- 4px gap between steps
- No label
Edit Mode:
- Stronger blue background (50% opacity)
- Rounded container
- No gap between steps (handles visible)
- Label visible below group
- Hover: 75% opacity background
- Selected: 100% opacity (solid blue)
Labels
| Type | Icon | Label Text |
| Playthrough | Double arrow (→→) | "Playthrough" |
| Loop | Circular arrows | "Loop" |
| Boomerang | Bidirectional arrows (←→) | "Boomerang" |
Animation Types
| Type | Behavior |
| Playthrough | Play once from start to end |
| Loop | Repeat N times (start → end, restart) |
| Boomerang | Ping-pong N times (start → end → start) |
Selection
- Click on group background (not steps/handles) to select
- Only works in Edit mode
- Shows Animation Properties panel when selected
Internal Transitions
Transitions between steps within a group are always autoplay. Cannot change to manual. Panel shows disabled toggle with message: "Autoplay is controlled by the Animation"
6. Selection Model
Mutual Exclusivity
Only ONE of these can be active at a time:
- Step selection (single or multi)
- Transition selection (single or multi)
- Animation selection
Selection Priority for Panel Display
- Animation selected → Animation panel
- Transition selected → Transition panel
- Multiple transitions selected → Multi-Transition panel
- Multiple steps selected → Step panel (multi-selection mode)
- Default → Step panel for focus step
Clearing Rules
When clicking a Step:
- Clears transition selection
- Clears animation selection
- Clears transition focus
- Clears multi-selected transitions
When clicking a Transition:
- Clears multi-selected steps
- Clears animation selection
When clicking an Animation:
- Clears multi-selected steps
- Clears multi-selected transitions
- Clears transition selection
7. Multi-Selection
Model (Google Sheets Style)
- Focus: The "anchor" item (full-color highlight)
- Multi-selected: Other items in selection (lighter highlight)
- Focus is always part of multi-selection when multi-selection exists
Step Multi-Selection
Shift+Click:
- Keep focus unchanged (anchor)
- Select all steps from focus to clicked (inclusive)
- Navigate to clicked step
Cmd/Ctrl+Click:
- If no multi-selection and clicking different step:
- Create selection with [focus, clicked]
- If multi-selection exists:
- Toggle clicked step in/out of selection
- If removing focus, move focus to first remaining item
- Move focus to clicked step
Regular Click:
- Clear multi-selection
- Set focus to clicked step
Transition Multi-Selection
Same logic as steps.
Creating Animation from Multi-Selection
Requirements:
- 2+ steps selected
- All steps outside existing animations
- Steps are contiguous (no gaps)
When valid:
- "+" button appears to create animation
- Animation spans from first to last selected step
8. Autoplay System
Trigger Types
| Trigger | Behavior |
| Manual | User must click Next or a step to advance |
| Autoplay | Automatically advances after configured delay |
Autoplay Flow
Current Step → wait delay → animate to Next Step → check next transition → repeat if autoplay
Wrap-Around
- Last step can autoplay back to first step
- Creates continuous loop when all transitions are autoplay
Playback Behavior
- Autoplay begins automatically when entering a step with autoplay trigger
- User interaction (clicking step/handle) interrupts autoplay sequence
9. Wrap-Around Transition
Purpose
Connects the last step back to the first step, enabling continuous playback.
Appearance
- Appears after the last step in timeline
- Visual distinction: dashed border, lighter background
- Same interaction behavior as other handles
Panel Display
- Subtitle shows "From step N to 1"
- Same properties as other transitions
Restrictions
Cannot create animation starting from last step. Animation requires at least 2 steps, and last step has no "next" step to include.
10. Options Menu
Dropdown from "Options" button (Edit mode only).
Menu Items
Select all steps
- Selects all steps NOT inside any animation group
- First valid step becomes focus
- If no valid steps, nothing happens
Select all transitions
- Selects all transitions NOT inside any animation group
- Enters Edit mode if not already
- First valid transition becomes focus
Reverse timeline
Close Behavior
- Clicking menu item closes menu
- Clicking outside menu closes menu
- Exiting Edit mode closes menu
11. Autoplay Settings Popup
Trigger
Click the fast-forward (>>) button in timeline controls (Edit mode only).
Purpose
Batch-enable autoplay for all transitions not inside animation groups.
Content
- Title: "Play through steps automatically"
- Description: "Automatically advance through steps when viewing this Jig. Set how long to pause on each step before continuing."
- Field: "Delay between steps" (default: 0.8 s)
Buttons
| Button | Action |
| Cancel | Close without changes |
| Enable autoplay | Apply to all valid transitions, close |
Scope
Only affects transitions NOT inside animation groups. Transitions within animations are controlled by the animation itself.
Close Behavior
- Cancel button
- X button
- Click outside popup (on overlay)
12. Validation Rules
Animation Group Overlap
Rule: A step can only belong to ONE animation group.
When creating animation:
- Check that no selected step is already in another animation
- Check that range doesn't overlap existing animations
When editing animation range:
- New range cannot include steps from other animations
- Increment/decrement buttons disabled at boundaries
Animation Creation Restrictions
| Condition | Can Create? |
| Starting from last step | No |
| Step already in animation | No |
| Next step already in animation | No |
| Non-contiguous selection | No |
| Valid contiguous steps | Yes |
Transition Inside Animation
- Cannot set to manual trigger
- UI shows disabled state with explanation
13. Visual Specifications
Colors
| Token | Value | Usage |
| Accent | #2F4DE4 | Primary blue, selections, buttons |
| Accent Light | #e0e7ff | Hover states, focus backgrounds |
| Accent Lighter | #f0f4ff | Subtle highlights |
| Text Primary | #1e293b | Main text |
| Text Secondary | #64748b | Descriptions, labels |
| Background | #f8fafc | Page background |
Dimensions
| Element | Size |
| Step tile | 140px × 112px |
| Step tile radius | 20px |
| Handle (idle) | 16px × 16px |
| Handle (expanded) | 40px × 40px |
| Timeline gap | 8px |
| Animation group padding | 8px (default) / 10px (edit) |
| Animation group internal gap | 4px (default) / 0 (edit) |
Animation Timing
| Property | Easing |
| Bouncy interactions | cubic-bezier(0.34, 1.56, 0.64, 1) |
| Smooth transitions | cubic-bezier(0.22, 1, 0.36, 1) |
Selection Opacity
| State | Border Opacity |
| Focus | 100% |
| Multi-selected (not focus) | 40% |
Interaction Flow Examples
Navigate to Step 3
- User clicks Step 3 tile
- Step 3 becomes focus (blue border)
- 3D view animates to Step 3
- Property panel shows Step 3 properties
Range Select Steps 2-5
- User clicks Step 2 (becomes focus)
- User Shift+clicks Step 5
- Steps 2, 3, 4, 5 all selected
- Step 2 shows focus style (full opacity)
- Steps 3, 4, 5 show multi-selected style (40% opacity)
- Property panel shows multi-selection state
Select Transition
- User clicks transition handle between Step 2 and 3
- If in Default mode, enters Edit mode
- Handle shows selected state (blue)
- Step selection cleared
- Property panel shows Transition properties
Enable Autoplay for All
- User clicks >> button
- Popup appears
- User sets delay to "1.2 s"
- User clicks "Enable autoplay"
- All transitions outside animations become autoplay
- Handles change from circles to triangles
- Popup closes
Create Animation from Selection
- User selects Steps 2, 3, 4 (Shift+click or Cmd+click)
- "+" button appears (all steps valid)
- User clicks "+"
- Animation created spanning Steps 2-4
- Steps now wrapped in blue container
- Animation panel appears
Document version: 2.0 | Last updated: January 2025