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

Allow onInit to prevent play #127

Open
gskinner opened this issue Jan 31, 2024 · 0 comments
Open

Allow onInit to prevent play #127

gskinner opened this issue Jan 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@gskinner
Copy link
Owner

It could be useful to allow onInit handlers to return a boolean to override autoPlay.

foo.animate(
  onInit: (c) {
    // do some stuff
    return false; // prevent autoplay
  }
).fadeIn()

Maybe have the return type be bool? to allow for backwards compatibility.

@gskinner gskinner added the enhancement New feature or request label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant