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.3.0
  • 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
        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

Warning

if you have installed this library version under 0.3.0, you have to specify hqWidth and hqHeight like this:

  • hqWidth={1200} hdHeight={900}

New Versions 0.3.0

  • now imageHd sizes are calculated at runtime, and user can use this library without know the source image -> FINALLY :)

New Versions 0.2.1

  • fix fadeInMillis props

New Versions 0.2.0

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

Keywords

FAQs

Package last updated on 17 Mar 2018

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