Socket
Socket
Sign inDemoInstall

thumb-preview

Package Overview
Dependencies
34
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    thumb-preview

Provides a thumbnail preview effect controlled by mousemove events.


Version published
Maintainers
1
Install size
10.2 MB
Created

Readme

Source

#React Thumb Preview

WORK IN PROGRESS. ALPHA. NOT READY FOR DISTRIBUTION.

A React component that provides a thumbnail preview effect controlled by mousemove events.

##Usage

var images =  ["/path/to/image_1.jpg",
  "/path/to/image_2.jpg", "/path/to/image_3.jpg"]

React.render(<ThumbPreview images={images} />, targetElement);

This is a port from the jQuery-Thumb-Preview plugin

##Examples

Check index.html for a comparison between the original jQuery plugin and this component.

I've run some benchmarks in Chrome 43.0.2357.130 (64-bit) and Firefox 38.0.5:

Chrome

Firefox

Keywords

FAQs

Last updated on 03 Jul 2015

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