react-image-zooms
A click on the react component of the zoom in image Demo
Installation
npm i -S react-image-zooms
Usage
You need to limit the width and height of the image, it's recommended to use a sized container wrapper component.
;; <div className="image-box"> <ImageZooms src="some image url" duration=300 imageBoxSize=600 />;</div>;
Props
You may want to specify props:
src
:required
- online image urlduration
:optional
- zoom in image takes time,default: 300
imageBoxSize
:optional
- the maximum width and height of the enlarged image,default:500
License
Licensed under MIT license.