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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?