-
Notifications
You must be signed in to change notification settings - Fork 930
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 life-cycle CSS classes #89
Comments
josevalim
changed the title
Document life-cycle CSS classes
Provide life-cycle CSS classes
Mar 20, 2019
I'd second this. The various classes during the life cycle of an interaction would allow easier CSS animations. Some inspirations from Vue: https://vuejs.org/v2/guide/transitions.html#List-Move-Transitions |
+1 |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Today, we have life-cycle classes only at the LiveView root: phx-disconnected and phx-loading. We should document those accordingly.
I also suggest to provide life-cycles for every event. For example, if a button is clicked, a phx-clicked class will be added until click "response" is received from the server. Similar for phx-change and phx-submit events on a form. This probably requires #569 to be implemented.
The text was updated successfully, but these errors were encountered: