Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 478 Bytes

File metadata and controls

33 lines (22 loc) · 478 Bytes

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