Skip to content
🔬 A React component to zoom images on hover https://react-img-zoom.netlify.com/
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.babelrc
.eslintignore
.eslintrc.js
.gitignore
.npmignore
LICENSE
README.md
doczrc.js
package.json
postcss.config.js
rollup.config.js
yarn.lock

README.md

NPM version GitHub Stars GitHub Issues MIT Licence CircleCI

A react component to zoom images on hover
A gif that shows an image beeing zoomed with a mouse

Installation

npm install react-img-zoom

Basic usage

The component has only four required props: the link to the image, the zoom scale, the width and height (in pixels).

import Zoom from 'react-img-zoom'

<Zoom
  img="link-to-img"
  zoomScale={3}
  width={600}
  height={600}
/>

You can refer to the docs for more information and a live demo!

To do

You can’t perform that action at this time.