项目作者: pjb0811

项目描述 :
staggered list app using react & react-motion.
高级语言: TypeScript
项目地址: git://github.com/pjb0811/react-staggered-list.git
创建时间: 2018-08-24T09:22:04Z
项目社区:https://github.com/pjb0811/react-staggered-list

开源协议:

下载


react-staggered-list

staggered list app using react & react-motion.

NPM JavaScript Style Guide

This package is included in react-motion-components.

Install

  1. npm install --save react-staggered-list

Usage

demo

  1. import * as React from 'react';
  2. import StaggeredList from 'react-staggered-list';
  3. class Example extends React.Component {
  4. render() {
  5. return (
  6. <div>
  7. <h1>react-staggered-list</h1>
  8. <div
  9. style={{
  10. width: 100,
  11. height: 100,
  12. margin: '0 auto'
  13. }}
  14. >
  15. <StaggeredList>
  16. <div style={{ widht: 100, height: 100, background: 'green' }} ></div>
  17. <div style={{ widht: 100, height: 100, background: 'red' }} ></div>
  18. <div style={{ widht: 100, height: 100, background: 'blue' }} ></div>
  19. </StaggeredList>
  20. </div>
  21. </div>
  22. );
  23. }
  24. }

License

MIT © pjb0811