-
Notifications
You must be signed in to change notification settings - Fork 101
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
Proposal: addClassTransition
and removeClassTransition
#181
Comments
The problem is that by toggling a class there might be different transitions that finish at different times, so which transitionend event does one listen to? FWIW, you can use |
I guess the first one (like with
Yup, that's what I'm doing currently. :-) Anyway feel free to close this issue if you think it's a non-starter, I agree that listening to the |
Would it be possible to automatically figure out the longest-lasting (or shortest, or average) of multiple transitions, and wait for that until the |
I like to keep CSS transitions in CSS rather than javascript and handle the transitions by adding/removing classes instead. Would a PR for this feature be accepted?
Usage Example:
The text was updated successfully, but these errors were encountered: