New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-shuffle

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-shuffle

React Child Shuffler

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
76
58.33%
Maintainers
4
Weekly downloads
 
Created
Source

#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

PropPropTypeDescription
durationReact.PropTypes.numberDuration of animation
fadeReact.PropTypes.boolShould children fade on enter/leave
scaleReact.PropTypes.boolShould children scale on enter/leave
intialReact.PropTypes.boolShould 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

Keywords

react

FAQs

Package last updated on 27 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts