Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hirako2000
Copy link
Collaborator

Some more doc fixing, and adds page to explain animation clips

Copy link
Member

@sasha240100 sasha240100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good!


modules: [animationModule]
}).addTo(app).then(() => {
animationModule.play('clipName');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an idea:

How about this? :

new Importer({
  // ...
  modules: [
    new AnimationModule(app)
  ]
}).addTo(app).then(importer => {
 const animation = importer.manager.use('animation');
 animation.play('clipName');
});

Looks good as to me, and no global variables:D

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks good, I will edit this next time I edit the example. there will be more to come for ease-in/out.

@hirako2000 hirako2000 merged commit a8becd1 into beta Jun 23, 2017
@sasha240100 sasha240100 deleted the #189 branch June 30, 2017 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants