1.3.0 • Published 8 years ago
react-rotation v1.3.0
react-rotation 
React rotation component
Supports wheel, keyboard, mouse and touch events
Install
npm install --save react-rotationUsage
import React from 'react'
import {render} from 'react-dom'
import Rotation from 'react-rotation'
render(
<Rotation>
<img src='images/00.jpg' />
<img src='images/01.jpg' />
<img src='images/02.jpg' />
<img src='images/03.jpg' />
</Rotation>,
document.querySelector('.container')
)Props
className- class name of container, stringcycle- cyclic rotation, boolean, defaultfalsescroll- rotation by wheel/scroll, boolean, defaulttruevertical- vertical orientation, boolean, defaultfalsereverse- reverse rotation, boolean, defaultfalsetabIndex- order of focusable element, number|string, default0autoPlay- start a frame playback with specified speed, boolean|number, defaultfalsepauseOnHover- pause a frame playback on mouse hover, boolean, defaultfalseonChange- frame change event handler, function
Related
- circlr — animation rotation via scroll, mouse and touch events
License
MIT