thumb-preview

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i thumb-preview

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • caike