-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Loading indicator till app inits #3788
Conversation
app-view:not(:empty) ~ .loading-indicator { | ||
opacity: 0; | ||
transform: scale(0.9); | ||
pointer-events: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary but it helps me sleep at night.
Better make sure transparent elements are absolutely non-interactable.
Is the E2E fail due to the CSS changes? |
Nope. I'm looking into it. |
aa61a3d
to
6cc38be
Compare
6cc38be
to
59a8984
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice 👍
Description
Before app loads there might be a substantial wait for
<app-view>
to populate. Instead of looking at a blank screen, here's a nice hovering logo.This is a css+html only change 😛
Even determining indicator hide/show is done with css, according to
<app-view>
being empty/full.Some notes
I created a new beautiful sleek animation with the bars but for some reason it's animation got stuck on the main thread. Don't know how since I used only gpu accelerated transition props. Anywho, this is good enough.
I only wish I didn't have to stick the entire html elements into
index.html
and it's twin brother.Lmk if there's a way around that (independent of Angular/React).
Mobile & Desktop Screenshots/Recordings
Before:
After: