Socket
Socket
Sign inDemoInstall

react-pinch-zoom-element

Package Overview
Dependencies
12
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-pinch-zoom-element

![NPM version](https://img.shields.io/npm/v/react-pinch-zoom-element) ![License](http://img.shields.io/npm/l/react-pinch-zoom-element.svg?style=flat-square)


Version published
Maintainers
1
Install size
2.87 MB
Created

Readme

Source

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>
  );
}

FAQs

Last updated on 28 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc