Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
getting rid of magic numbers
  • Loading branch information
elquatro committed Apr 14, 2015
1 parent be03fa7 commit 0447f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/transitions/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ <h4>Example Details</h4>
var children = [];
var pos = 0;
var colors = ['red', 'gray', 'blue'];
for (var i = this.state.current; i < this.state.current + 3; i++) {
for (var i = this.state.current; i < this.state.current + colors.length; i++) {
var style = {
left: pos * 128,
background: colors[i % 3]
background: colors[i % colors.length]
};
pos++;
children.push(<div key={i} className="animateItem" style={style}>{i}</div>);
Expand Down

0 comments on commit 0447f1e

Please sign in to comment.