Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maybe return emitter #1

Open
tj opened this issue May 28, 2013 · 4 comments
Open

maybe return emitter #1

tj opened this issue May 28, 2013 · 4 comments

Comments

@tj
Copy link
Member

tj commented May 28, 2013

with "end" event

@danielsitek
Copy link

I think, it would be nice to have 2 emitters, "start" and "end".

@dy
Copy link
Member

dy commented Dec 20, 2014

@tj +1 definitely good idea. Or at least to have a callback.

@duttonkj
Copy link

duttonkj commented Jan 16, 2018

Actually, I just realized you can utilize events from the original Tween class:

const scroller = scrollTo(0, 0)
scroller.on('end', () => console.log('Do work!') )

The Tween docs list all of the events available:
https://github.com/sole/tween.js/blob/master/docs/user_guide.md

@sag1v
Copy link

sag1v commented Apr 25, 2018

works for me

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

No branches or pull requests

5 participants