react-shuffle

Animated shuffling of child components on change

  • Owner: FormidableLabs/react-shuffle
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Maintenance Status

react-shuffle

Animated shuffling of child components

Install

npm install react-shuffle

Preview

http://i.imgur.com/B1RFfvj.gif

Usage

Simply wrap child components with this component and dynamically change them to see them animate. The only real requirement is that each child has a non-index based key, for proper position identification.

Props, Prop, PropType, Description, ----, --------, -----------, duration, React.PropTypes.number, Duration of animation, fade, React.PropTypes.bool, Should children fade on enter/leave, scale, React.PropTypes.bool, Should children scale on enter/leave, intial, React.PropTypes.bool, Should scale/fade occur on first load, ### Example

'use strict';

var React = require('react');

var Shuffle = require('react-shuffle');

const App = React.createClass({
  render() {
    return (
      <Shuffle>
       {// Method to render children goes here}
      </Shuffle>
    )
  }
});

module.exports = App;

Shout out

react-shuffle is heavily inspired by Ryan Florences Magic Move demo https://youtu.be/z5e7kWSHWTg

Maintenance Status

Archived: This project is no longer maintained by Formidable. We are no longer responding to issues or pull requests unless they relate to security concerns. We encourage interested developers to fork this project and make it their own!

Main metrics

Overview
Name With OwnerFormidableLabs/react-shuffle
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2015-06-17 18:14:51
Pushed At2019-04-15 18:38:34
Last Commit At2019-04-15 11:38:34
Release Count7
Last Release Namev2.0.0 (Posted on 2016-07-26 18:08:13)
First Release Namev0.0.2 (Posted on 2015-06-17 14:28:10)
用户参与
Stargazers Count249
Watchers Count58
Fork Count36
Commits Count52
Has Issues Enabled
Issues Count16
Issue Open Count11
Pull Requests Count14
Pull Requests Open Count5
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private