react-shuffle

Animated shuffling of child components on change

  • 所有者: FormidableLabs/react-shuffle
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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!

主要指標

概覽
名稱與所有者FormidableLabs/react-shuffle
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2015-06-17 18:14:51
推送於2019-04-15 18:38:34
最后一次提交2019-04-15 11:38:34
發布數7
最新版本名稱v2.0.0 (發布於 2016-07-26 18:08:13)
第一版名稱v0.0.2 (發布於 2015-06-17 14:28:10)
用户参与
星數248
關注者數58
派生數34
提交數52
已啟用問題?
問題數16
打開的問題數11
拉請求數14
打開的拉請求數5
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?