ant-design/components/queue-anim/demo/simple.md

34 lines
572 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
title: 默认
---
2015-10-19 15:36:32 +08:00
最简单的进场例子。
````jsx
import { QueueAnim } from 'antd';
2015-10-23 22:37:42 +08:00
2015-10-23 14:53:57 +08:00
ReactDOM.render(
2016-03-29 20:29:41 +08:00
<QueueAnim delay={500} style={{ height: 150 }}>
2015-10-23 22:37:42 +08:00
<div key="a">依次进场</div>
<div key="b">依次进场</div>
<div key="c">依次进场</div>
<div key="d">依次进场</div>
<div key="e">依次进场</div>
<div key="f">依次进场</div>
2015-10-19 15:36:32 +08:00
</QueueAnim>
, mountNode);
2015-10-19 15:36:32 +08:00
````
2015-10-23 22:37:42 +08:00
````css
.code-box-demo > div {
overflow: hidden;
}
.code-box-demo .buttons {
text-align: center;
margin: 0 auto;
margin-bottom: 20px;
}
````