react-image-zoom-rotate

0.1.3 • Public • Published

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}
      />

Readme

Keywords

none

Package Sidebar

Install

npm i react-image-zoom-rotate

Weekly Downloads

2

Version

0.1.3

License

MIT

Unpacked Size

21.6 kB

Total Files

7

Last publish

Collaborators

  • chiaweilee