1.2.2 • Published 8 years ago

velocity-transition-group v1.2.2

Weekly downloads
114
License
MIT
Repository
github
Last release
8 years ago

VelocityTransitionGroup

This is a replacement for React's ReactCSSTransitionGroup addon that uses velocity.js for animations instead of CSS.

Warning

Many other libraries have popped up since this one that accomplish the same thing and more.

I'd recommend looking at velocity-react before using this. It is likely more up to date with the latest React, and includes other components and features that make working with Velocity in React much easier.

Installation:

npm install velocity-transition-group

Simple Example:

import VelocityTransitionGroup from `velocity-transition-group`;

let overlayStyles = {
  backgroundColor: '#000',
  position: 'fixed',
  top: 0,
  right: 0,
  bottom: 0,
  left: 0
};

let OverlayComponent = React.createClass({
  render() {
    return (
      <VelocityTransitionGroup
        appear={{opacity: [1, 0]}}
        leave={{opacity: 0}}
        easing='linear'
        duration={250}
      >
        <div style={overlayStyles} />;
      <VelocityTransitionGroup/>
    )
  }
});

Based heavily on @tkafka's react-VelocityTransitionGroup

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago