Skip to content

Commit

Permalink
Merge pull request facebook#3668 from elquatro/master
Browse files Browse the repository at this point in the history
Get rid of magic numbers in transitions example
  • Loading branch information
sophiebits committed Apr 14, 2015
2 parents be03fa7 + 0447f1e commit 4504504
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 4504504

Please sign in to comment.