# style 自定义样式动画进出场 - order: 4 通过加上属性里的 `style` 来自定义 CSS 动画进出场。 --- ````jsx var EnterAnimation = antd.EnterAnimation; var Test = React.createClass({ getInitialState() { return { enter: { style: { transform: "translateX(50px)", opacity: 0 }, interval: .1, }, leave: { interval: 0.03 }, show: true } }, onClick() { this.setState({ show: !this.state.show }) }, render() { return (
{this.state.show ?
: null}
) } }); React.render( , document.getElementById('components-enter-animation-demo-style')); ````