You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2021. It is now read-only.
I would like to animate a skinned button state change (fade in push skin fade out normal skin).
For this uniform needs one or more callback delegates / custom events on button state change.
The text was updated successfully, but these errors were encountered:
Can't this be done with CSS-3? I realize you might require older browser compatibility, but Uniform already has performance problems when it comes to few dozen form elements: I am not sure how it will benefit us if we add animation related handlers as well.
I think there could be advantages to having a callback that's called when classes change. It opens up a whole world of possibilities for developers. The code wouldn't have to be that massive - simply check if a callback is registered for the elements and then call it with something like "apply", "hover-start", "focus", "hover-end", "blur", "removed", etc. I don't remember exactly what we use for events, but I think it would be easiest to mimic that. Allow the developer to take whatever action they want on state changes.
I also think that the fading transition that is being described by @softlion could be done more easily with CSS3 for this request. Perhaps callbacks would be more appropriate for the next release?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to animate a skinned button state change (fade in push skin fade out normal skin).
For this uniform needs one or more callback delegates / custom events on button state change.
The text was updated successfully, but these errors were encountered: