Skip to main content
Visual Arts & DesignUX Design Patterns29 lines

Video Editor Timeline Interface

Build a timeline for video editing with track and clip geometry, playhead scrubbing, trim and snap behavior, undo and accessible alternate controls.

Quick Summary9 lines
Write the edit model before implementing drag handlers. Define stable track and clip IDs, timeline position, source in and out, duration and the project timebase. Keep source ranges separate from timeline placement. An inserted gap is data, not empty pixels. Specify how overlapping clips, locked tracks, linked audio, and explicit ripple versus overwrite behavior work in the supported edit mode.

## Key Points

- [OpenTimelineIO time-range model](https://opentimelineio.readthedocs.io/en/latest/tutorials/time-ranges.html)
- [Kdenlive timeline behavior reference](https://docs.kdenlive.org/en/user_interface/timeline.html)
- [W3C dragging alternatives](https://www.w3.org/WAI/WCAG22/Understanding/dragging-movements)
skilldb get ux-design-patterns-skills/video-editor-timelineFull skill: 29 lines
Paste into your CLAUDE.md or agent config

Video Editor Timeline Interface

Write the edit model before implementing drag handlers. Define stable track and clip IDs, timeline position, source in and out, duration and the project timebase. Keep source ranges separate from timeline placement. An inserted gap is data, not empty pixels. Specify how overlapping clips, locked tracks, linked audio, and explicit ripple versus overwrite behavior work in the supported edit mode.

Make screen coordinates a reversible projection

Derive the visible pixel position from timeline time, zoom and horizontal scroll. Keep pointer, playhead and preview on the same timeline-time conversion. Change zoom around a stable anchor such as the pointer or playhead where the interface promises it. Test positioning after horizontal scroll and after zoom without mutating clip times. For frame-based media choose an explicit rounding rule and avoid storing repeated floating-point pixel deltas as edits.

During drag or trim, preview the proposed edit from the original clip state. Convert snap tolerance from screen units to timeline time and choose a deterministic tie-break. Show the current snap target. Keep the threshold stable as zoom changes. Reject or constrain edits at media and track boundaries. On cancel, restore original state. On commit, record one undoable operation with original and resulting ranges, and include displaced clips when using ripple edit. A scrub updates preview time, not clip geometry.

Design controls that work without dragging

Expose named clip and track selection, visible focus and keyboard movement. Offer a simple single-pointer alternative for relevant dragging actions, such as select a clip then choose a destination, and numeric or step controls for trim. Announce changed positions in a useful format without flooding speech during every pointer move. Make play, pause and scrubbing usable when media decode is pending. If the user changes the selected source, prevent an old preview frame from replacing the new one.

Test with synthetic clips at two zoom levels, trim to a source boundary, snap near a cut, reject a move on a locked track, and undo a ripple edit. Compare the underlying timeline and a rendered preview for the same edit. Record supported frame rates, accessibility paths and known unsupported cases.

References and rights

Original SkillDB instructions under LicenseRef-SkillDB-Content. References were checked 2026-11-13 and used for technical verification.

Install this skill directly: skilldb add ux-design-patterns-skills

Get CLI access →