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

Provide life-cycle CSS classes #89

Closed
josevalim opened this issue Mar 18, 2019 · 3 comments
Closed

Provide life-cycle CSS classes #89

josevalim opened this issue Mar 18, 2019 · 3 comments

Comments

@josevalim
Copy link
Member

josevalim commented Mar 18, 2019

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.

@josevalim josevalim changed the title Document life-cycle CSS classes Provide life-cycle CSS classes Mar 20, 2019
@sntran
Copy link

sntran commented Mar 26, 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

@suazithustra
Copy link

suazithustra commented May 17, 2019

+1

@brachialix
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants