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

Delay running the button till after the effect? #104

Open
epugh opened this issue Jul 1, 2023 · 1 comment
Open

Delay running the button till after the effect? #104

epugh opened this issue Jul 1, 2023 · 1 comment
Labels
question Questions about the library or the usage.

Comments

@epugh
Copy link

epugh commented Jul 1, 2023

Hi, enjoying adding this to the open source project Quepid, github.com/o19s/quepid.

I have a button that submits some data, however I'd like to run the confetti effect FIRST, and then run the button.. I'm using the onMouseDown, can I make it run first?

@yiliansource
Copy link
Owner

hi, sorry for the late response!

there's currently no clean way for the library consumer to check if an effect has ended, but you could just submit the data after a brief delay (via setTimeout), but i'd have to know more about your context to help more.

@yiliansource yiliansource added the question Questions about the library or the usage. label Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions about the library or the usage.
Projects
None yet
Development

No branches or pull requests

2 participants