Skip to content

feat: before/after comparison slider — split view of original vs adjusted video #660

@magic-peach

Description

@magic-peach

Colour/brightness adjustments are currently invisible until export. A before/after comparison view would let users see exactly how much their adjustments change the visual output.

What to build

Add a split-view slider to the video preview when any colour adjustment (brightness, contrast, saturation) is non-zero:

  • Left side: original video frame (no CSS filters)
  • Right side: adjusted frame (CSS filters applied)
  • A draggable vertical divider lets the user scrub between the two views
  • Show a label "Before" / "After" on each side

This is a pure CSS/canvas solution — no FFmpeg needed.

Files to modify

  • src/components/VideoPreview.tsx — add split-view overlay and draggable divider
  • Create src/components/BeforeAfterSlider.tsx

Acceptance criteria

  • Slider appears only when at least one colour adjustment is non-zero
  • Divider is draggable across the full width of the preview
  • Both sides update in sync as the video plays
  • Accessible via keyboard (left/right arrow keys move the divider)
  • Works in light and dark mode

Screen Recording Required

Your PR for this issue must include a screen recording showing the feature working on your local machine (bun run devhttp://localhost:3000). PRs without a recording will not be merged.

See CONTRIBUTING.md for how to record.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions