Widget Animation
I have 3 wigets above a table that gets its data from the tablequery and its values are emitted to it after the table is rendered and when filters are updated. Works great, but I would like to have some type loading animation or something other than seeing the values quickly go from 0 to the correct number. Any suggestions?
8 Replies
I'm curious to know what the fully loaded page looks like, is this something you can share?
maybe a skeleton loader that covers everything with wire:loading to show and hide it?
Right now i just have on each card to set the initial values of 0, then when data is updated through an emit, the values change. Hoping to find a solution that i can use really with a lot of our widgets. Wish lazy loading was also built into widgets. I know there is a trick published, but requires overriding a view
Im fine with doing the standard spinner in place of the 0
but even the entire widget having a loading type experience like tables too
The first thing that comes to mind for me is often a ramp up from 0 (like you said). But I can see it becoming annoying quickly, in an admin context... Maybe a very light spinner? Or an animated ... (one dot appears after the other, then the number fades in)
would really need to see it to offer design input. π
message sent. I do though think in general, its more a general widget experience type of need
yea, i think @pboivin is on a good path with the 3 dots animated in place of the actual number.
probably the easiest thing to do. should be easy enough with css and wire:loading
I went simple with