0.1.8 • Published 2 years ago

react-pinch-zoom-element v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-pinch-zoom-element

NPM version License

Preview

화면 기록 2022-10-28 오후 12 41 46

Installation

$ yarn add react-pinch-zoom-element

How to run example code

$ git clone https://github.com/jinsunee/react-pinch-zoom-element.git
$ cd react-pinch-zoom-element
$ yarn
$ yarn storybook

Full code of example

import React from "react";
import { PinchZoom } from "react-pinch-zoom-element";

export default function PinchZoomExample() {
  return (
    <div
      style={{
        width: "100%",
        height: "100vh",
        display: "flex",
        justifyContent: "center",
        alignItems: "center",
      }}
    >
      <div
        style={{
          border: "1px solid green",
          overflow: "hidden",
          width: 800,
          height: 400,
        }}
      >
        <PinchZoom>
          <img
            src={require("./assets/img.jpg")}
            alt=""
            style={{ width: 400, height: 400, pointerEvents: "none" }}
          />
        </PinchZoom>
      </div>
    </div>
  );
}
0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago