react-quick-pinch-zoom-ssr
This repo is forked from react-quick-pinch-zoom
, just added some extra code to make it workable on server side.
A react component that lets you zooming and dragging on any DOM element using multi-touch gestures on mobile devices and mouse-events\wheel on desktop devices. Based on this module manuelstofer/pinchzoom
Component features:
- 🔮 Simple. Easy to use;
- 🍎 It works with mobile touch gestures and desktop mouse events;
- ⚡ Fast, 60 FPS on mobile devices.
Links
Install
yarn add react-quick-pinch-zoom
Screenshots
Usage
import React useCallback useRef from "react";import QuickPinchZoom make3dTransformValue from "react-quick-pinch-zoom"; const IMG_URL = "https://user-images.githubusercontent.com/4661784/" + "56037265-88219f00-5d37-11e9-95ef-9cb24be0190e.png"; const App = const imgRef = ; const onUpdate = ; return <QuickPinchZoom => <img = = /> </QuickPinchZoom> ;;
License
MIT © retyui