1.2.0 • Published 9 years ago

react-class-shifter v1.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

react-class-shifter

A React component that facilitates animations by shifting classes around.

Usage

Render the component with children:

React.render((
  <ClassShifter>
    <div key="1">slide 1</div>
    <div key="2">slide 2</div>
    <div key="3">slide 3</div>
  </ClassShifter>
), sliderNode);

The .active class will be shifted from one element to the next:

Props

You can control the speed with speed={2000} and disable pausing on hover (on by default) with pauseOnHover={false}.

If you set the prop callback to a function, it will be called whenever the index changes. The function will receive the current index as an argument.

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago