Skip to content

mgorabbani/react-image-pan-zoom-rotate

Repository files navigation

React Image Pan, Zoom & Rotate

React library to give control on image to move zoom and rotate

NPM JavaScript Style Guide npm type definitions

Demo

image

Edit q8wl1joow9

Features

  • Drag & Move
  • Zoom In
  • Zoom Out
  • Rotate (in Left only)
  • Flip Image
  • Reset

Install

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

or

> yarn add react-image-pan-zoom-rotate

Usage

import React from 'react';
import ReactPanZoom from 'react-image-pan-zoom-rotate';

const App = () => {
  return (
    <ReactPanZoom
      image="https://images.unsplash.com/photo-1551091708-fda32ed3178c"
      alt="Image alt text"
    />
  );
};

export default App;

or Check example folder below file to use your custom UI

ReactPanZoom.tsx

License

MIT © mgorabbani

About

React library to give control on image to move zoom and rotate

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published