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

Provide async/await helpers #76

Closed
kefniark opened this issue Jan 24, 2022 · 0 comments · Fixed by #78
Closed

Provide async/await helpers #76

kefniark opened this issue Jan 24, 2022 · 0 comments · Fixed by #78
Assignees

Comments

@kefniark
Copy link
Owner

kefniark commented Jan 24, 2022

Description

Working with callback can quickly be verbose and hard to read.
For simple usage, it would make more sense to have a way to rely on async/await syntax

const obj = { x: 0, y: 0 };
const tween = Fatina.tween(obj).to({ x: 500 }, 2500).start();
await tween.toPromise()
@kefniark kefniark self-assigned this Jan 24, 2022
This was referenced Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant