0.1.3 • Published 4 years ago

react-image-zoom-rotate v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

react-image-zoom-rotate

🔍React image zoom and rotate component

Install

npm install react-image-zoom-rotate --save

Usage

import ImageZoom from 'react-image-zoom-rotate';
<ImageZoom
        rotate={(clockwise, antiClockwise) => {
          return (
            <div>
              <Button onClick={clockwise} style={{ position: 'absolute', right: 0, zIndex: 1 }}>
                clockwise
              </Button>
              <Button onClick={antiClockwise} style={{ position: 'absolute', left: 0, zIndex: 1 }}>
                anti-clockwise
              </Button>
            </div>
          );
        }}
        src={imgs[imgIndex]}
        width={400}
        zoomWidth={500}
      />
0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago