I have been exploring animations with the ReactCSSTransitionGroup props transitionAppear and transitionEnter.
These animate the entry of the notes onscreen but the initial load of the list renders all the items at once.
Is there a way to add a delay to the rendering of each item on initial load so that they do not appear at once?
You can see the full code here
var NotesList = React.createClass({
render: function(){
var notes = this.props.notes.map(function(note, index){
return (<li className="list-group-item" key={index}>
<b>{note}</b>
</li>);
})
return (
<ul className="list-group">
<ReactCSSTransitionGroup transitionName="fade" transitionAppear={true} transitionAppearTimeout={500} transitionEnterTimeout={500} transitionLeaveTimeout={300}>
{notes}
</ReactCSSTransitionGroup>
</ul>
)
}
});