Skip to content

Commit

Permalink
animation example fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tajo committed Jan 21, 2016
1 parent 1ee7ed5 commit b54ead8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class App extends React.Component {
new TWEEN.Tween({opacity: 0})
.to({opacity: 1}, 500)
.easing(TWEEN.Easing.Cubic.In)
.onUpdate(() => {
.onUpdate(function() {
node.style.opacity = this.opacity;
}).start();
}
Expand All @@ -35,7 +35,7 @@ export default class App extends React.Component {
new TWEEN.Tween({opacity: 1})
.to({opacity: 0}, 500)
.easing(TWEEN.Easing.Cubic.In)
.onUpdate(() => {
.onUpdate(function() {
node.style.opacity = this.opacity;
})
.onComplete(removeFromDom)
Expand Down

0 comments on commit b54ead8

Please sign in to comment.