Skip to content

Commit

Permalink
Even more efficient code in the example! O_O
Browse files Browse the repository at this point in the history
  • Loading branch information
sole committed Jun 15, 2014
1 parent 212bfb4 commit 6bfea10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ The following code creates a Tween which will change the `x` attribute in a posi
.onUpdate( function () {

output.innerHTML = 'x == ' + Math.round( this.x );
output.style.left = this.x + 'px';
var transform = 'translateX(' + this.x + 'px)';
output.style.webkitTransform = transform;
output.style.transform = transform;

} )
.start();
Expand Down

0 comments on commit 6bfea10

Please sign in to comment.