|
|
@ -44,7 +44,10 @@ var TodoList = React.createClass({ |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<button onClick={this.handleAdd}>Aggiungi Elemento</button> |
|
|
|
<ReactCSSTransitionGroup transitionName="example" transitionEnterTimeout={500} transitionLeaveTimeout={300}> |
|
|
|
<ReactCSSTransitionGroup |
|
|
|
transitionName="example" |
|
|
|
transitionEnterTimeout={500} |
|
|
|
transitionLeaveTimeout={300}> |
|
|
|
{items} |
|
|
|
</ReactCSSTransitionGroup> |
|
|
|
</div> |
|
|
@ -89,7 +92,10 @@ Ti accorgerai che la durata delle animazioni devono essere specificate sia nel C |
|
|
|
```javascript{3-5} |
|
|
|
render: function() { |
|
|
|
return ( |
|
|
|
<ReactCSSTransitionGroup transitionName="example" transitionAppear={true} transitionAppearTimeout={500}> |
|
|
|
<ReactCSSTransitionGroup |
|
|
|
transitionName="example" |
|
|
|
transitionAppear={true} |
|
|
|
transitionAppearTimeout={500}> |
|
|
|
<h1>Dissolvenza al Montaggio Iniziale</h1> |
|
|
|
</ReactCSSTransitionGroup> |
|
|
|
); |
|
|
@ -182,7 +188,10 @@ var ImageCarousel = React.createClass({ |
|
|
|
render: function() { |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<ReactCSSTransitionGroup transitionName="carousel" transitionEnterTimeout={300} transitionLeaveTimeout={300}> |
|
|
|
<ReactCSSTransitionGroup |
|
|
|
transitionName="carousel" |
|
|
|
transitionEnterTimeout={300} |
|
|
|
transitionLeaveTimeout={300}> |
|
|
|
<img src={this.props.imageSrc} key={this.props.imageSrc} /> |
|
|
|
</ReactCSSTransitionGroup> |
|
|
|
</div> |
|
|
|