Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Image Comparison Slider in React

Prompt

Build a before/after image comparison slider where dragging a vertical divider reveals more of one image and hides the other. Used in photo editing tools and product showcases. The drag position determines how much of each image is visible using CSS clip-path or overflow hidden.

Use a draggable vertical line tracked via onMouseDown
Test Results

Image Comparison Slider in React

Build a before/after image comparison slider where dragging a vertical divider reveals more of one image and hides the other. Used in photo editing tools and product showcases. The drag position determines how much of each image is visible using CSS clip-path or overflow hidden.