Animated shuffling of child components on change
Clone or download
ryan-roemer Merge pull request #35 from lachlanjc/patch-1
Fix Example heading in README
Latest commit 02aa5e1 Feb 26, 2018


Animated shuffling of child components


npm install react-shuffle



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.


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


'use strict';

var React = require('react');

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

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

module.exports = App;

Shout out

react-shuffle is heavily inspired by Ryan Florences Magic Move demo