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.
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 linesVideo 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
Related Skills
Accessible Calendar Date Picker
Design and test a date input and calendar dialog with keyboard navigation, local date validation, availability rules and predictable focus restoration.
dashboard-layout
Dashboard layout patterns with sidebar nav, header, content area, and responsive breakpoints
data-tables
Data table UX patterns for sorting, filtering, pagination, bulk actions, and empty states
Debounced UI Search and Filters
Implement search/filter navigation with debounced input, safe request cancellation, truthful loading, empty and error states, and browser history checks.
form-patterns
Form design patterns for validation, multi-step forms, inline editing, and error handling
Accessible Gallery and Carousel Navigation
Build a responsive media gallery or carousel with visible controls, keyboard and touch navigation, stable focus and reduced-motion behavior.