Skip to content

robcolburn/react-rotation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-rotation

React rotation component

Supports wheel, mouse and touch events

Install

npm install --save react-rotation

Usage

import React from 'react';
import Rotation from 'react-rotation';

const data = [
  'images/00.jpg',
  'images/01.jpg',
  'images/02.jpg',
  'images/03.jpg'
];

React.render(<Rotation data={data} />, document.querySelector('.container'));

License

MIT

Packages

No packages published

Languages

  • JavaScript 100.0%