Jump to content

TweenLite with TypeScript?


jellix
 Share

Recommended Posts

Hi,

I've downloaded http://greensock.com/tweenlite and implemented the TweenLite.js within my index.html.

Then I've downloaded https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/greensock/greensock.d.ts and referenced the file within my .ts file.

So I'm able to call a TweenLite.to(myMesh, 2, {y:20});

But it doesn't do anything and I also don't get an error. Another question is: the property "y" is not defined for ma mesh because it's a property of "maMesh.position". So should I write TweenLite.to(myMesh.position, 2, {y:20}); ?

How do you tween Objects with TypeScript?

Btw.: I think that the Animation-Class of babylon is too hard to use for my needs.

Link to comment
Share on other sites

24 minutes ago, jellix said:

How do you tween Objects with TypeScript?

The same way you tween objects with javascript.

25 minutes ago, jellix said:

So should I write TweenLite.to(myMesh.position, 2, {y:20});

This makes sense to me.  Did you not try it?

If you don't have any luck here you might want to go here:

http://greensock.com/forums/forum/11-gsap/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...