Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-imagezoomable

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-imagezoomable

image witch zoom to fullscreen and with mouse movement

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-96.87%
Maintainers
1
Weekly downloads
 
Created
Source

Install

react-imagezoomable

    npm install react-imagezoomable --save

Demo

You can find simple example on codesandbox

Usage

      <ImageZoomable hqWidth={1200} hqHeight={800}
        uri="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6aet0wf5IR_eWqnfWt96RfCREgsO4LjjM6qQYnELMVw7uYM9_Ag"
        uriHD="http://www.telegraph.co.uk/content/dam/Travel/Tours/New%20York1-xlarge.jpg"
        debug
        // percBigger={10}
        // fadeInMillis={350}        
      />
  • percBigger (optional) define zoom level. If set to 0 only x/y will move. Default il 10%
  • fadeInMillis (optional) define time of fade. Default is 350
  • Debug draw a red line which help you to understand if mouse arrive cerrectly in all 4 corners of the image
  • uriHD and uri should be the same image but with different resolution
  • hqWidth and wqWidth give dimension of uriHD image.

ToDo

  • remove hqWidth and wqWidth and calculate these values automatically

New Versions 0.2.0

  • add percBigger and fadeInMillis props
  • NOW WORK ALSO IN TOUCH SCREEN DEVICE

New Versions 0.2.1

  • fix fadeInMillis props

Keywords

FAQs

Package last updated on 30 Nov 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc