Skip to content
R

react-compare-image

React component to compare two images with a slider

by junkboy0315

#1336in UI Libraries
0In stores

Description

React Compare Image is a React component that lets visitors compare two images with a draggable slider. You pass in a left and a right image…

Highlights

  • Horizontal and vertical image comparison slider
  • Responsive, fits the width of its parent
  • Custom handle, labels and slider line styling
  • Skeleton shown while images load
  • Callback on slider position change

Ratings & Reviews

No ratings yet

Be the first to rate react-compare-image.

People also visit

R

react-image-gallery

Responsive image gallery, carousel, image slider react component

UI Libraries
Launch
R

react-inner-image-zoom

A React component for magnifying an image within its parent container

UI Libraries
Launch
G

gatsby-background-image

Lazy-loading React background-image component

UI Libraries
Launch
R

react-imgix

Add fast, responsive images as an image, picture, or background!

UI Libraries
Launch
R

react-slider

Slider component for React

UI Libraries
Launch
R

react-images-viewer

Create an react-images-viewer component

UI Libraries
Launch

react-compare-image FAQ

What is React Compare Image?

A React component that compares two images with a slider, for before and after views or similar side-by-side checks.

Which React version does it need?

Version 1 or later needs React 16.8 or newer. Projects on older React should use version 0.

Can I customize the slider?

Yes. You can change the handle size and element, the line color and width, add labels, slide on hover, and style each image.

Where are the options listed?

The README has a props table with each option, its type, default value and description, plus a demo and sample code.

What are the best react-compare-image alternatives?

Popular alternatives to react-compare-image include react-image-gallery, react-inner-image-zoom and gatsby-background-image. See all react-compare-image alternatives

Developer Stuff

Badges